I have a Javascript that I am working on and I would like to combine two selectors so that they refer to this tag only:
<input name="checkable" type="checkbox">
So that only checkable with type checkbox will react to it while a text-field with a name of checkable will not. I have tried:
$("input[name='checkable' type='checkbox']")
with no success. Any ideas on how I can do this?
$("input[name='checkable'][type='checkbox']")
Cf. Multiple Attribute Selector [name="value"][name2="value2"].
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