开发者

get the table row cell value

开发者 https://www.devze.com 2022-12-08 05:33 出处:网络
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.

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消