What is jQuery?
Difference between onload() and document.ready() function used in jQuery?
- We can add more than one document.ready() function in a page.
- We can have only one onload function.
- Document.ready() function is called as soon as DOM is loaded.
- body.onload() function is called when everything (DOM, images..) gets loaded on the page.
Is jQuery a library for client scripting or server scripting?
Is jQuery a W3C standard?
What are jQuery Selectors?
Selectors are used in jQuery to find out DOM elements. Selectors can find the elements via ID, CSS, Element name and hierarchical position of the element.
The jQuery html() method works for both HTML and XML documents?
It only works for HTML.
Which sign does jQuery use as a shortcut for jQuery?
What does $("div") will select?
It will select the entire div element in the page.
What does $("div.parent") will select?
The entire div element with parent class.
What is the name of jQuery method used for an asynchronous HTTP request?
What are the different types of selectors in Jquery?
- CSS Selector
- XPath Selector
- Custom Selector
What does .size() method of jQuery return?
.size() method of jQuery returns number of element in the object.
Explain the each() function.