Web Design Learning jQuery Part 4 - Adding/Removing Classes and Efficiency

in #blog7 years ago (edited)

Welcome to the next part of my jQuery tutorial series.

☠️ Adding/Removing Classes and Efficiency ☠️

So in the last part of this series we looked at using the click event handlers to trigger code to run.
We also looked at how we might be able to change the styling of our html page, our own little night mode feature.

This week will will look at adding and removing classes, and how we can more efficiently produce out night mode feature by keeping the amount of code we write down to a minimum.

Sort:  

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by TheVillan from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, someguy123, neoxian, followbtcnews/crimsonclad, and netuoso. The goal is to help Steemit grow by supporting Minnows and creating a social network. Please find us in the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.

If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP. Be sure to leave at least 50SP undelegated on your account.

The @OriginalWorks bot has determined this post by @thevillan to be original material and upvoted it!

ezgif.com-resize.gif

To call @OriginalWorks, simply reply to any post with @originalworks or !originalworks in your message!

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.030
BTC 65128.68
ETH 3442.23
USDT 1.00
SBD 2.52