Interesting Facts About jQuery


RelaxPlz...

jQuery

jQuery is the most popular JavaScript library in use today. It is released by John Resig in January 2006 under the MIT and GNU General Public licenses. It is the library that is beloved by most of the web developers for scripting. It is very easy to learn, have a good documentation and a big community. In this article I’m going to share you some of the interesting things from that library. If you do like jQuery and know some interesting things please post a comment.

1. Using mutiple selectors

You can use multiple selectors using the comma operator. For examples to select all the <p> and <span> elements you could use

1
$("div,span")

2. Selecting elements by attribute values

You can select elements not only by using their tag, class or id but also by their attribute value. For ex. you can select all the <a>

View original post 909 more words