jQuery - How to convert a jQuery object to the kind of object returned w/ getElementById
dom, javascript, jquery
Solution
Something like this:
$("#myId").get(0)
or
$("#myId")[0]
Problem
Occasionally I come across situations where certain I have to use `document.getElementById()` in order to get certain code to work (like w/ Google Maps API for example) for reasons I don't understand. Is there a jQuery method or some relatively easy way to convert a jQuery object to the sort of object returned w/ `document.getElementById()`?