What is the different between
$("input[name='ABC']") // without ":"
$(":input[name='ABC']") // with ":"
both work same to me, so should we write it with colon ":" or without? which is more correct?
input
will just select specifically the <input>
element.
:input
selects <input>
, <textarea>
, <select>
, and <button>
.
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