Is there any benefit to using jQuery over getElementById() to retrieve an input field’s value?
jQuery("#item_id").val()
document.getElementById("item_id").value
In other words, is JQuery necessary to retrieve a value (i.e., does it cover special tricky cases)?
The only tricky cases that jQuery helps with are for select elements. The native way should be(is) faster.
Edit to avoid confusion:
native way is
document.getElementById("item_id").value