The most basic thing in JQuery seems to be to write $(document).ready(…). If I understand the “document” there represents the DOM of the HTML page. Does it have a name in JQuery terms? Is it a “selector”? Is the list of methods I can call on available somewhere in the JQuery documentation?
The same goes for the $(location), what is that called? object?
What other such things (for no better name for now) are available in JQuery?
Where are they documented?
jQuery can “wrap” any DOM object. You can also do it with
$(window)and with$(myObj)wheremyObjis your own variable set likevar myObj = document.getElementById("div1");.When you give jQuery object/element then it’s not using any selectors, but you can have:
And this is using selector and works same way.