0

I am using the HTML table. the first column contain the checkbox. How to get the cell values of the checked row using jquery.

Thanks, Nizam

2 Answers2

4

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.

Greg
  • 316,276
  • 54
  • 369
  • 333
0

See How to get a table cell value using jquery?

Community
  • 1
  • 1
Galwegian
  • 41,475
  • 16
  • 112
  • 158