• Vehicles • Fashion • Recipes • Blogs • Hunt • Travels • Sport • Fun • Handmade • IT • Education
Mini-Games
x

x
zakruti.com » IT - Software » freeCodeCamp.org
jQuery: CSS and classes

jQuery: CSS and classes

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Learn how to use jQuery to modify CSS and classes with the css, addClass, removeClass, and toggleClass methods. - Code: https://codepen.io/beaucarnes/pen/pryoXJ - Beau Carnes on
Date: 2022-03-14

Comments and reviews: 4


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

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

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

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