Welcome to my Blog

Lorem ipsum dolor amet conse semper ctetur adipig NOW!

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

27 February 2010 - JavaScript, jQuery - James Brown - No Comments

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)