jQuery is a popular JS library developed by John Resig. In this journey we will explore the basics of jQuery that includes,
Find something and do something to it using pre-writtern Javascript
AdvantageCross Browser compatibility including IE6.Light weightAJAX Support- Animation
Motto
- write less and do more
How to use jQuery
- Download jQuery library from jQuery.com and it is present in single file and include the same in ur js file
- Just like maven,include the jQuery library from CDN(Content Delievery network)
Basic Syntax
- $(selector).action()-General Syntax
- $(".fresco")-to select with class
- $("*")-To select all the element
- $("p, #matrix, .fresco")-combination of more than one selector with others
Keywords
- first()-first element
- eq()-index element
- filter()-condition within condition $("p").filter(".fresco")
- not()
- slice()-between the index 2,5
- last()-last element
No comments:
Post a Comment