jQuery: $("#elementID") != document.getElementById("elementId")
Written in 2010. Some of it may be out of date.
Just a quick reminder that in jQuery:
$(“#elementID”) != document.getElementById(“elementId”)
They are not the same thing.
If you use $(“#elementID”) you will return an array. If you want the real DOM element you need to use: $(“#elementID”).get(0)