Visit official jquery site. jQuery is javascript library which is cross-platform/ browser, fast, robust, easy to learn. It makes things easy which are difficult to do in alone javascript (although, jQuery itself is in javascript). It creates, virtual namespace (which is advance for beginner, so I am not explaining here). Main benefits of jQuery ,
- It makes javascript programming easy.
- Platform independent / Cross- browser
- It's used by millions of people.
- Unobtrusive JavaScript. It seperates html and javascript. (Though, it can't seperates100%, and it also depend on your own coding.
- It is used by wordpress/ wikipedia
- Progressive enhancement - if browser don't support few features of javascript / jQuery, there should be way to access basic content of page. Javascript should provide enhancement/ wow effect. But it doesn't mean, without javascript, we can't access page. Like when you visit, mail.google.com (gmail) and internet is slow, a pop up comes that says, load basic html. It's progressive enhancement.
- Degrading gracefully - if javascript is disabled, page should load properly. Like above gmail example.It is reverse of progressive enhancement.
<script src="http:////ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>Now, you are ready to go, see next blog for learning jQuery
No comments:
Post a Comment