$("#element").get(0).value = v;
Get's the first DOMElement that matches this query (similar to getElementById('element').value = v). Really bad jQuery style.
$("#element").val(v); could have been used to make it more jQuery-ish and independent of the input-type.
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