Sunday, August 2, 2009

Convert jQuery selector result to DOM object

The result of e.g. $("#id") is not a DOM object, but an array of DOM objects, so you can index it to access the DOM object: $("#id")[0]

No comments:

Post a Comment