Posts

Showing posts from May, 2019

Is jQuery a framework or a library?

I think jQuery is not a framework. It is a javascript library. And jQuery is a single library. Frameworks contain key distinguishing features that separate them from normal libraries: inversion of control - In a framework, unlike in libraries or normal user applications, the overall program's flow of control is not dictated by the caller, but by the framework. So, I think it's not a framework.

The 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 select one or more HTML elements  using jQuery . The jQuery selector enables you to find DOM elements in your web page. Most of the times you will start with selector function $() in the jQuery. The selector expression parameter specifies a pattern to match the elements. The jQuery uses CSS selector patterns  as well as its own pattern to match the elements.

The Features Provided by jQuery

jQuery is the Library of JavaScript. It is simple and easy to learn. For perform any task jQuery required less code compare to javascript. jQuery Features:- Simple and Easy -  It have predefined method using you can perform any task easily compare to JavaScript. And it is easy to learn. Lightweight -  It is very lightweight library - about 19KB in size ( Minified and gzipped ). CSS manipulation -  It have predefined css() method for manipulate style for any Html elements. Html manipulation -  The jQuery made it easy to select DOM elements, traverse them and modifying their content. Cross browser support -  It support all modern web-browser including IE-6. Event handling -  It support event handling like click mouse button. JavaScript Library -  It is JavaScript library. Ajax Support -  It support ajax, you can develop a responsive and feature-rich site using AJAX technology. Built-in Animation -  It have predefin...