Can any one help me to understand jQuery? [closed]
开发者_运维问答I am new to jQuery. I know the use of jQuery but I want to understand the architecture of jQuery. I mean how jQuery works with DOM.
Where can I get all this information? What would be a good book or website?
We can not help you "understand" jQuery, you have to understand it yourself. However we can show you some great learning resources for learning it. Check these out
If you want there is an excellent book named "Learning jQuery" by PACKT
http://visualjquery.com/
http://www.learningjquery.com/
http://15daysofjquery.com/
Hai srirangan ,
Have a look at these links http://docs.jquery.com/Tutorials
http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery
As with learning any other new language or skill, start with small steps.
A list of places where you might get stuck:
- Not able to get jQuery loaded
- Dont know how to figure out whether or not jQuery is loaded
.show()
and.hide()
are not working- where to put the jquery code - before or after the html it relates to, top of page, bottom of page, etc
- confusion with the various selectors like
#something
,.something
,:something
etc - confusion with whether to put
#foo bar
or#foo > bar
- confusion about
$( function() {})
and$(document).ready (function() {})
I strongly suggest that you spend some time using and learning Firebug and Web Developer Toolbar- will save a lot of trouble
By looking at the various tabs in Firebug, you will be able to figure out a lot of things about web development - especially HTML, Script and Net tabs
Web dev toolbar gives you truckloads of options and info about your page/site.
Nothing can teach you jQuery without these two plugins.
A practical point worth noting - one place where I first pulled out my hair was forgetting to put #
in selectors for id's and putting #
where it is not supposed to be.
Plain old typos !!
I found this a useful resource when I had to explore jQuery: http://book.learningjquery.com/.
精彩评论