Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 22nd, 2010 | Syntax: None | Size: 1.59 KB | Hits: 31 | Expires: Never
Copy text to clipboard
  1.  
  2.  
  3. <html>
  4.         <title>
  5.                 Test
  6.         </title>
  7.         <body>
  8.        
  9.         <script src="http://code.jquery.com/jquery-latest.js"></script>
  10.        
  11.         <script type="text/javascript">
  12.         $(document).ready(function() {
  13.                
  14.                
  15.                 $("#idGameDetails").click(function() {
  16.                        
  17.                        
  18.                        
  19.                         alert($(this).parent().siblings().children("select option:selected").text());
  20.                        
  21.                        
  22.                        
  23.                        
  24.                        
  25.                 });
  26.                
  27.         });
  28.         </script>
  29.        
  30.        
  31.  
  32. <table class="report_table sort-table" id="table-2">
  33.                 <thead>
  34.                                         <tr>
  35.                                                 <th>Table </th>
  36.                                                 <th>Seats </th>
  37.                                                 <th>Monitors </th>
  38.                                                 <th>Game </th>
  39.                                                 <th>Game Details</th>
  40.                                         </tr>
  41.                 </thead>
  42.                                 <tbody class="report">
  43.                     <tr class="row0">
  44.                         <td><a href="https://pstation.no-ip.biz/admin/venue/tables/edit_table_seats?table_id=1">1</a></td>
  45.                         <td><span>8</span></td>
  46.                         <td><span>1</span></td>
  47.                         <td>                          
  48.                           <select id="idSelect" name="tables.table_type_id:records">
  49.                             <option value="">No Game</option>
  50.                             <option selected="selected" value="2">FooType1 FooSTyle1 FooBet1</option>
  51.                             <option value="3">FooType2 FooSTyle2 FooBet2</option>
  52.                             <option value="1">FooType3 FooSTyle3 FooBet3</option>
  53.                             </select>
  54.                         </td>
  55.                                                 <td><a id="idGameDetails" href="#">Game details</a></td>       
  56.                     </tr>
  57.                                 </tbody>
  58.                                
  59.             </table>
  60.                        
  61.         </body>