开发者

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?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜