Write less do more
Below are some of the core features of jQuery –
- DOM traversing/manipulation
- Event handling
- Simpler AJAX calls
- Easy animations
- It’s lightweight
- Has cross browser support
Installation of jQuery
There are two versions of jQuery that is available for download –
- Minified version – Prod version – compact and compressed form
- Development version – Uncompressed and readable form
To start using jQuery, make sure the <head> tag in your HTML has the <script> source pointing to the downloaded jQuery library.
A library is a collection of functions / objects that serves a particular purpose. We could use a library in a variety of projects. A library is something you build with. For example – jQuery
A framework is a collection of patterns and libraries to help with building an application. A framework is something that you build on. For example – AngularJS
Applying this to compare jQuery and Angular, jQuery is a single tool (that primarily solves one specific problem: DOM manipulation) whereas Angular is a whole toolbox built over jQuery with all kind of tools for different problems (like routing, model-bindings, DOM manipulation, templating, etc.). As jQuery, Angular doesn’t provide us with the APIs.