Adding and Removing CSS Classes With jQuery - jQuery Tutorials for Beginners

Опубликовано: 28 Июнь 2011
на канале: jqueryvideotutorials
14,651
51

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


На этой странице сайта вы можете посмотреть видео онлайн Adding and Removing CSS Classes With jQuery - jQuery Tutorials for Beginners длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь jqueryvideotutorials 28 Июнь 2011, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 14,651 раз и оно понравилось 51 зрителям. Приятного просмотра!