| Author |
jQuery in Action -- jQuery replaces JavaScript?
|
Raghavan Muthu
Ranch Hand
Joined: Apr 20, 2006
Posts: 3327
|
|
Hi Bear,
It may sound stupid. I have read that jQuery runs on top of JavaScript or based on JavaScript. But my question is that to what extent the developers might use the plain JavaScript? If jQuery is a superset of JavaScript, it should ideally be replacing it. Right?
|
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
|
 |
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
|
jQuery is written in JavaScript. It does indeed replace the need to write pure JavaScript in a lot of cases but I don't see jQuery as a complete replacement.
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15362
|
|
jQuery replaces enhances JavaScript?
Eric
|
 |
Raghavan Muthu
Ranch Hand
Joined: Apr 20, 2006
Posts: 3327
|
|
Thats great. Thank you Gregg and Eric!
I guess the same may go with CSS also right. As jQuery provides even more good animations or visual effects to the UI components. Or the rule does NOT hold good for CSS?
|
 |
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
Raghavan Muthu wrote:Or the rule does NOT hold good for CSS?
Not really.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56531
|
|
|
jQuery in no way replaces CSS. It makes it easier to manipulate at run-time, but CSS, like JavaScript, is alive and well when using jQuery.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Raghavan Muthu
Ranch Hand
Joined: Apr 20, 2006
Posts: 3327
|
|
Bear Bibeault wrote:It makes it easier to manipulate at run-time, but CSS, like JavaScript, is alive and well when using jQuery.
Thank you Bear.
Does the statement "easier to manipulate at run-time" means that the CSS attributes (like selectors etc.,) can be chosen at runtime? If so, it would be really a gift to the developers!!
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56531
|
|
|
Yes, CSS properties are easy to manipulate. See the .css() method.
|
 |
Raghavan Muthu
Ranch Hand
Joined: Apr 20, 2006
Posts: 3327
|
|
Thats great. Thanks Bear
|
 |
 |
|
|
subject: jQuery in Action -- jQuery replaces JavaScript?
|
|
|