Reputation: 799
I have this input:
<tr><td class="forms">Price:</td><td><input type="text" name="price" size="30"/></td></tr>
How can I call this input?
Example: With this code I call to the id:
$("#numberclasses").change(function() {
And I call to the class with this:
$(".numberclasses").change(function() {
But How can I call to the name?
Upvotes: 9
Views: 10228
Reputation: 15616
Use:
$('input[name="price"]').change(function() {
Check out the jQuery selectors docs for more info.
Upvotes: 17