Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

get table row value using ajax

$
0
0

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


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>