wonder what's wrong
<table id=tblDomainVersion>
<tr>
<td>Version</td>
<td>No of sites</td>
</tr>
<tr>
<td class=clsversion>1.25</td>
<td><a id=expanddomain>3 sites</a><span id=spanshowall></span></td>
</tr>
<tr>
<td class=clsversion>1.37</td>
<td><a id=expanddomain>7 sites</a><span id=spanshowall></span></td>
</tr>
</table>
$('#expanddomain').click(function() {
//the siblings result incorrect
//select first row will work
//select second row will no response
var versionforselected= $('#expanddomain').parent().siblings("td.clsversion").text();
alert(versionforselected);
$.ajax({
url: "ajaxquery.php",
type: "POST",
data: 'version='+versionforselected,
timeout: 900000,
success: function(output) {
output= jQuery.trim(output);
$('#spanshowall').html(output);
},
});
});