jQuery get DOM node?

Viewed 61611

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()?

1 Answers

You can retrieve DOM elements using array notation:

$("#element_id")[0]

or with get():

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