actionopk.blogg.se

What is jquery
What is jquery




what is jquery

For example, adding or removing elements, modifying html content, css class etc. It provides many built-in functions using which you can accomplish various tasks easily and quickly.ĭOM Selection: jQuery provides Selectors to retrieve DOM element based on different criteria like tag name, id, css class name, attribute name, value, nth child in hierarchy etc.ĭOM Manipulation: You can manipulate DOM elements using various built-in jQuery functions. JQuery makes a web developer's life easy. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. Some benefits of the jQuery Object include:Ĭompatibility – The implementation of DOM methods varies across browser vendors and versions.JQuery is a fast, small, and feature-rich JavaScript library. The jQuery object defines many methods to smooth out the experience for developers. It turns out that working directly with DOM elements can be awkward.

what is jquery

These properties are the only way to interact with the web page via JavaScript. Among these properties are attributes like. For a more thorough description, refer to the official DOM specification from the W3C.Įlements have properties like any JavaScript object.

what is jquery

DOM elements are described by a type, such as, , or, and any number of attributes such as src, href, class and so on. It may contain text and/or other DOM elements. At a high level, a DOM element can be thought of as a "piece" of a web page. It may contain any number of DOM elements. The Document Object Model (DOM for short) is a representation of an HTML document. Actually, the jQuery object is more complicated than that. It has a zero-indexed sequence of DOM elements, some familiar array functions, and a. Many developers new to jQuery assume that this collection is an array. When creating new elements (or selecting existing ones), jQuery returns the elements in a collection.






What is jquery