Can I use jQuery to replace certain class (.a) in input fields with another (.b) one in my table?
<table id="myTable">
<tr>
<td>Field 1</td>
<td><input type="text" class="a"></td>
</tr>
<tr>
<td>Field 2</td>
<td><textarea class="a"></td>
</tr>
</table>
$("#myTable").find(":input").removeClass('a').addClass('b');
See: http://jsfiddle.net/fqXvT/1/
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