Hi all, just a quick question. I believed that $('#value')
was a jQuery function equivalent to document.getElementById('value')
however, in the code below, only the second function gives the desired result.
Can someone explain why this is?
$('#value').value = "1";
document.getElementById("value").value = "1";