jQuery: CSS and classes

preview_player
Показать описание
Learn how to use jQuery to modify CSS and classes with the css, addClass, removeClass, and toggleClass methods.

-

Рекомендации по теме
Комментарии
Автор

This is good! So we can create classes / id's in CSS, for example .red{color: red;} and then use it to jQuery addClass, $("p").addClass(red); without "". I had the same question while doing fcc-weather challenge. Suggestion, when you mentioned to use addClass, beginner won't understand what do you mean by CSS class as the class name is .red and the color is red and it is in CSS block which is hidden. Thanks and its a great help

rr
Автор

I really enjoy your teaching style Beau, is there an order to watching your JavaScript vids? I'd like to start on JS and was wondering about that.

Elregar
Автор

This was good! Question if we are not supposed to put production ready code in JS where do we put it and will it over ride the CSS code or is there a possibility that one will override the other?

MsLadyL
Автор

it is really good thanks for ur useful video

mehdirasoulzadeh-ux
Автор

Also, can you use toggle and set it to make a sound instead of visual changes? I'd like to start a project for next football season that's a weekly pick em site. I have a buddy who's a huge cowboys fan and I'd like to put some code in there that emits a loud buzz when he clicks on them to win, just to mess with his head haha. I'd have to tie it to his login name somehow. Is that achievable with JS/jQuery?

Elregar
Автор

mind if someone tell me the compiler his using?

joshuanonato