Is jQuery a client-side or a server-side JavaScript library?
jQuery is a client side framework that mostly caters toward DOM manipulation and abstracts many DOM methods so you can save lots of typing.
DOM:
var as = document.getElementsByTagName('a');
jQuery:
$('a')
It also solves a lot of browser discrepancies so you have more time for rapid development and not have to worry about low-level inconsistencies.
client side. and it's very nice. It allows you to modify the DOM tree very efficiently and without hassle. Also, there are a lot of plugin libraries, allowing you to add new widgets and high-level functionality to the library in no time.
jQuery is a client-side Javascript Framework which you can include in your HTML code using the <script src="scripts/jquery.js"></script>
tag.
It's a JavaScript framework that abstracts many complex tasks into well tested methods that are wrapped in the jQuery function.
Jquery is a client side library used for:
- Traversing the DOM: Selecting every other paragraph, or getting all the child elements inside a list, for example.
- Manipulating the DOM: Wrapping every link in a div tag, changing all tables to red.
- Ajax: Sending requests to the server and retrieving and displaying the response the server sends back, without refreshing the whole page.
- Animation: Fade in, Slide Up, grow, shrink, move, etc.
- Browser normalization: Make all browsers behave the same way with the same jquery code.