$("#elementId")!=document.getElementById("elementId")
$("#elementId") method gives a jQuery object that is always an array of Elements.
So to the get the real DOM element you have to use $("#myElementId")[0] or the more readable $("#myElementId").get(0)
No comments:
Post a Comment