jQuery
A framework is something that usually forces a certain way of implementing a solution, whereas jQuery is just a tool to make implementing what you want to do easier.
jQuery provided features
- HTML/DOM manipulation.
- CSS manipulation.
- HTML event methods.
- Effects and animations.
Advantage of jQuery
The 3 main advantages of jQuery are lightweight when compared to other javascript frameworks. it has a wide range of plugins available for various specific needs. it is easier for a designer to learn jQuery as it uses familiar CSS syntax
Disadvantage of jQuery
The most serious disadvantage ofjQuery is that it is overweight kb wise. jQuery is a single JavaScript file “jquery.js” which contains all its DOM, events, effects, and Ajax components. The file over time and development has gained a substantial amount of kb.
How the jQuery handles page to load in the browser
jQuery makes it straightforward to set up event-driven responses on page elements. These events are often triggered by the end user’s interaction with the page, such as when text is entered into a form element or the mouse pointer is moved. In some cases, such as the page load and unload events, the browser itself will trigger the event.
How selectors and their use in jQuery
A jQuery Selector is a function which makes use of expressions to find out matching elements from a DOM based on the given criteria. Simply you can say, selectors, are used to selecting one or more HTML elements using jQuery.
What is jQuery’s DOM
A DOM element represents a visual or functional element on the page which was created from the original HTML document. A jQuery object is a convenience wrapper around a DOM element in Javascript which is a method to manipulate theDOM which is a representation of the page which was created from an HTML file.
Importance of DOM
The functions associated with these objects determine how the objects may be manipulated, and they are part of the object model. The Document Object Model currently consists of two parts, DOMCore and DOM HTML The DOM Core represents the functionality used for XML documents, and also serves as the basis for DOM HTML.
Benefits of using jQuery
- Search Engine Optimized — While search engines are getting better at being able to read the content within some Flash, everything within jQuery is set up as text.
- Save Time — Five lines Of jQuery are equivalent to 25 lines Of conventional JavaScript code