get the table row cell value
I am using the HTML table. the first column contain the checkbox. How to get the cell values of th开发者_开发百科e checked row using jquery.
Thanks, Nizam
You can do it like this:
$('#myTable input:checked').parent('tr').find('td')
You can then get the contents of the cells using .html()
or .text()
or whatever you want depending on exactly what you need.
See How to get a table cell value using jquery?
精彩评论