
jQuery: CSS and classes
video description
Date: 2022-03-14
Related videos
Comments and reviews: 4
RR
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
reply
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
reply
Elregar71
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?
reply
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?
reply
MsLadyL
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?
reply
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?
reply
Elregar71
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.
reply
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.
reply
Add a review, comment
Other channel videos















