jQuery: what is it "forbidden" to do in plain Javascript
Posted
by flybywire
on Stack Overflow
See other posts from Stack Overflow
or by flybywire
Published on 2010-06-08T03:24:00Z
Indexed on
2010/06/08
3:32 UTC
Read the original article
Hit count: 199
A jQuery best practices question.
I am writing a very jQuery intensive web page. I am new to jQuery and notice its power, but as I come with heavy javascript experience and knowledge, my question is: What should be done in jQuery and what in plain javascript.
For example, there are callbacks that send a plain DOM object as an argument. Should I use that or should I wrap it ( like $(this)
).
Does it matter if I do this.x=y or $(this).attr("x", y).
© Stack Overflow or respective owner