tags:

views:

138

answers:

7

Is jQuery a client-side or a server-side JavaScript library?

A: 

jQuery is client side

Marek Karbarz
+4  A: 

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.

meder
+1 - So much for my response.
James Black
A: 

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.

Stefano Borini
+4  A: 

jQuery is a client-side Javascript Framework which you can include in your HTML code using the <script src="scripts/jquery.js"></script> tag.

thephpdeveloper
Is this answer really the "best" answer? I'm not trying to get extra votes here, but this answer seems woefully incomplete.
Soviut
The question was answered here, short and sweet like the question. It was your choice to go the extra mile. It is hardly a woefully incomplete answer.
redsquare
A: 

jQuery is awesome.

Blake Taylor
lots of people http://en.wikipedia.org/wiki/Server-side_JavaScript
redsquare
Corrected my answer. I knew someone was going to call me on this. I was actually kinda joking simply because it is so popular as a client-side language.
Blake Taylor
+1  A: 

It's a JavaScript framework that abstracts many complex tasks into well tested methods that are wrapped in the jQuery function.

Joseph Silvashy
+8  A: 

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.
Soviut
you just did. =)
thephpdeveloper