I have a jQuery element but I have to send it to a function that only accepts HTML elements. How can I convert the jQuery element to an HTML element?
get() is most useful when you need negative indices, for example, as described in the documentation for
$("#foo") will get you an HTML element. Using brackets is a tiny bit faster than using
.get() but not something you’ll likely notice unless you are doing it millions of times.