jQuery get DOM node? [duplicate]

Possible Duplicate:
How to get a DOM Element from a JQuery Selector

I can select a node using jQuery with something like $('#element_id') but how would I get the DOM element for use with non-jQuery functions that expect something like would be returned by document.getElementById()?


You can retrieve DOM elements using array notation:

$("#element_id")[0]

or with get():

$("#element_id").get(0)