Getting a value of td of a selected tr in jquery
Posted
by jaeyun
on Stack Overflow
See other posts from Stack Overflow
or by jaeyun
Published on 2010-05-24T03:37:15Z
Indexed on
2010/05/24
3:40 UTC
Read the original article
Hit count: 302
Below is my table
<table>
<tr class=chargeTR>
<td id=chargeTD>
charge1
</td>
</tr class=chargeTR>
<td id=chargeTD>
charge2
</td>
</tr>
<table>
Below is my jquery call
$(".chargeTR").each(function() { // this line works fine
$.get("process.php", {
value: $(this).find("#chargeTD").val(), // I must be doing something wrong here...
}, function(theXML){
alert(theXML);
});
});
I cannot get the value "charge1" and "charge2". Can somebody please correct me in this? Thank you,
© Stack Overflow or respective owner