looping through <tr> then its <td>, is not working.
I tried two different codes but both don't work. Can someone help please?
- $("#table tr").each(function () {
- $(this).children("td").each(function () {
- alert($(this).val());
-
- });
- });
and:
- $("#table tr").each(function () {
- $(this).find('td').each(function () {
- alert($(this).val() );
-
- });
- });
I have textboxes inside of the tds and I'm trying to retrieve its values based on each row.