Source code here: http://jquerytutorialsforbeginners.com/5 ... video highlights below.
[0:47] The setup
[1:24] The directory structure we're using
[2:00] Going through our starting source code
[3:47] What comes first, .css files or .js files?
[4:19] Writing our CSS code (simple p.highlight class)
[5:30] On click, add the highlight class to every paragraph on the page
[6:15] Highlighting only the second paragraph on the page (with some trial and error)
[7:48] Adding multiple classes with one click
[8:36] Using jQuery's .css method to achieve the same effect
[10:58] On click, remove the highlight class
[11:49] On click, toggle the highlight class
[12:33] Simple examples, lots of potential
Sur cette page du site, vous pouvez voir la vidéo en ligne Adding and Removing CSS Classes With jQuery - jQuery Tutorials for Beginners durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur jqueryvideotutorials 28 juin 2011, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 14,651 fois et il a aimé 51 téléspectateurs. Bon visionnage!