Reference to a DOM element using jQuery

How can you create a reference to a DOM element using jquery? In other words, what is the jquery equivalent of

document.frm.element_name

or

document.getElementById("element_id")

Someone could say:

$("#element_id")

Wrong, as this is a jquery object and not a DOM object. The right answer is:

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

Your comments are welcome!


Don't miss any updates!

Subscribe to our free NewsLetter