So far I worked mostly on windows based applications in Microsoft technologies and I am now wanted to move into web technologies. I heard the word JQuery in lot of places when my friends talked, also in internet. So, I am really curious to know what is JQuery and why should use it? Is it easy to learn? Any good link out there to know what is inside jquery?
JQuery is nothing but a Java Script library which helps to write the java script quick and productive. It provides following advantages.
Lot of short cuts for existing java script functions. Very less typing.
Example: $('a') ---> This will give as all the 'anchor' tags in the html dom object
Provide lots of additional functions to write the productive code.
Example: $('div.MyStyle') --> This line will find all 'div' tags which are using the css class 'MyStyle'
Example: InnerText property may work in Internet explorer very well but may not be good for FireFox or other browsers.
JQuery provide thousands of plugins to be used in any application for free.
For a same type of function, you may be using different function based on the tag you are dealing with but in JQuery it is going to be single method, and the JQuery library will do the background work to get the right result for you.
Example: Consider, you have 'Textbox' and 'Select'. For a texbox if you want to get value of that textbox, then you may get it from value property.
But in JQuery, you may use single function called 'val()', either it is textbox or combobox. But you will get the result you need.
$('input[type="text"], #selectTagId ').val() --> this wil return value of all input elements with the type text and the value of tag with id "selectTagId" (you can use any value for the Id).
Apart from every thing, it is free.
It is really very easy if you understand the basics. If you want, you can go through the following link to get better idea.