jQuery: $(“#elementID”) != document.getElementById(“elementId”)

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)