Untitled
By: a guest | Mar 22nd, 2010 | Syntax:
None | Size: 1.59 KB | Hits: 31 | Expires: Never
<html>
<title>
Test
</title>
<body>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#idGameDetails").click(function() {
alert($(this).parent().siblings().children("select option:selected").text());
});
});
</script>
<table class="report_table sort-table" id="table-2">
<thead>
<tr>
<th>Table </th>
<th>Seats </th>
<th>Monitors </th>
<th>Game </th>
<th>Game Details</th>
</tr>
</thead>
<tbody class="report">
<tr class="row0">
<td><a href="https://pstation.no-ip.biz/admin/venue/tables/edit_table_seats?table_id=1">1</a></td>
<td><span>8</span></td>
<td><span>1</span></td>
<td>
<select id="idSelect" name="tables.table_type_id:records">
<option value="">No Game</option>
<option selected="selected" value="2">FooType1 FooSTyle1 FooBet1</option>
<option value="3">FooType2 FooSTyle2 FooBet2</option>
<option value="1">FooType3 FooSTyle3 FooBet3</option>
</select>
</td>
<td><a id="idGameDetails" href="#">Game details</a></td>
</tr>
</tbody>
</table>
</body>