Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jQuery in Action -- jQuery replaces JavaScript?

 
Raghavan Muthu
Ranch Hand
Posts: 3381
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jQuery replaces enhances JavaScript?

Eric
 
Raghavan Muthu
Ranch Hand
Posts: 3381
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Raghavan Muthu wrote:Or the rule does NOT hold good for CSS?


Not really.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Raghavan Muthu
Ranch Hand
Posts: 3381
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, CSS properties are easy to manipulate. See the .css() method.
 
Raghavan Muthu
Ranch Hand
Posts: 3381
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thats great. Thanks Bear
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic