Currently I am using
$('#mytable tr').click(function() {
blah blah
});
This makes all rows, including the headers clickable. How can I exclude the headers or <th>'s?
Separate you header and body using <thead> and <tbody> tags, and change your selector to "#mytable tbody tr"
HTML will look something like this
<table>
<thead>
<tr>
...
</tr>
</thead>
<tbody>
<tr>
...
</tr>
</tbody>
</table>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With