JQuery selector starting with #
indicates an ID selection. There can always be only one element with the given ID. Somehow, JQuery was implemented to always return an array from the calls like $("#elemID")
.
To change the value of an element now, I have to write like:
$("#elemID")[0].value = "something";
Is there a different method to do this without referring an array index like:
$.getElem("elemID").value = "something";