I used this code to get the particular column value using jquery..
$("#Grid td:first-child").click(function() {
var resultArray = $(this).closest('tr').find('td').text();
alert(resultArray);
});
How do I get the particular column value? That is, I need grid 4th and 5th column value?
Use the
:eqselector:That will alert value of 3rd and 4rth TD/column when first td of element with id
Grid(td:first-child) is clicked.If however, you want an array of values of TDs, use the
mapandgetmethods like this:Now
value_arraywill contains text for found TDs eg: