am currently studying jquery, can someone tell me the things that javascript native can do which jquery cannot ?
A:
jQuery is a library for Javascript which adds additional features.
It doesn't replace anything.
SLaks
2010-03-12 02:37:07
thanks for this as well
sasori
2010-03-12 02:45:06
Why was this downvoted?
SLaks
2010-03-12 13:21:35
+7
A:
In short: nothing
jQuery is an abstraction layer on top of plain JavaScript, it is JavaScript, it just adds a bunch of shortcuts to common tasks, usually in a highly optimized and cross-browser way.
It doesn't take anything away, you can mix and match all you want, jQuery simply adds to your options.
I'd take a look at the jQuery getting started documentation for more questions you might have like this.
Nick Craver
2010-03-12 02:37:18
@Downvoter - Helps to mention why, if you don't mention why you think an answer is incorrect, it helps no-one...
Nick Craver
2010-03-12 02:42:03
Hmmm, I think that this requires looking at what is lost, which I would say is that speed hit from including jquery. Which makes caching via google's CDN hosting of jQuery a useful tactic. There's always a tradeoff, is the point.
Tchalvak
2010-03-12 02:58:04
@Tchalvak good point, but how is that related to anything on this thread?
Anurag
2010-03-12 03:04:49
Yes. What native javascript can do that jQuery cannot is: avoid the need to include the hit of that library download and any subsequent processor-use overhead. Personally I don't consider that a worthwhile tipping factor, but it may be important for performance considerations.
Tchalvak
2010-03-12 03:09:59
@Tchalvak - However the browser is generally smart enough to not download an unchanged file again and again.
Jeremy
2010-03-12 03:15:05