ClovisFilho

Untitled

Aug 23rd, 2012
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.64 KB | None | 0 0
  1. <script type="text/javascript">
  2. $(document).ready(function() {
  3.     $('#display-info').click(function() {
  4.         $('#info-container').toggle();
  5.     });
  6. })
  7. </script>
  8. <table>
  9.     <thead>
  10.     <tr>
  11.         <th>Name</th>
  12.         <th>Date</th>
  13.         <th>Options</th>
  14.     </tr>
  15.     </thead>
  16.  
  17.     <tbody>
  18. <?php
  19.     foreach ($resource as $result)
  20.     {
  21. ?>
  22.     <tr>
  23.         <td><?php echo $result['name']; ?></td>
  24.         <td><?php echo $result['date']; ?></td>
  25.         <td><img src="../images/display-info" id="display-info"></td>
  26.     </tr>
  27.     <tr id="info-container" style="display: none;">
  28.         Here comes all the info I need to display when the user click on the display-info icon.
  29.     </tr>
  30. <?php
  31.     }
  32. ?>
  33.     </tbody>
Advertisement
Add Comment
Please, Sign In to add comment