hi,
i want to get table row value
this is my coding but cant get table value
<table>
<tr>
<td class="editable"> <a class="query" href="#"> <input type='text' name='postcode' id='txt_Address1' value=''/> </a> </td>
<td class="editable"> <a class="text" href="#"><input type='text' name='postcode' id='txt_Address2' value=''/> </a> </td>
</tr>
</table>
<input type="button" id="detect_rel" value="detect"/>
$('#detect_rel').click(function() {
$('tr').each(function(i, el) {
var query = $(el).children('td').children('.query').text();--How to get textbox value
var text = $(el).children('td').children('.text').text();
alert(query + " " + text);
//$.ajax (do your AJAX call here using values of query and text
});
});
thanks
thanks