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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With