Learn Javascript, toggleClass, Javascript and the DOM, Code

Channel:
Subscribers:
8,020
Published on ● Video Link: https://www.youtube.com/watch?v=sDyE_11ugQ4



Duration: 2:29
292 views
2


In this challenge we learn how to toggle a class on and off depending on an event (like a click event). This can help us change elements, and change them back by applying a class and then removing that class. If an element already has the class that is being toggled it will remove that class, but if the element does not have the class being toggled, it will then receive that class. Javascript allows us to do powerful things through jQuery, this is one of those things that are important to master. jQuery's toggleClass method allows us to make our site much more appealing.




Other Videos By We Will Code


2017-08-01Prefilter JSON, freeCodeCamp, JSON APIs and Ajax
2017-07-31Render Images from Data Sources, freeCodeCamp, JSON API's and AJAX
2017-07-30Convert JSON Data to HTML, freeCodeCamp, JSON API's and AJAX
2017-07-28Get JSON with the jQuery get JSON Method, freeCodeCamp, JSON API and AJAX
2017-07-28Change Text with Click Events, freeCodeCamp Tutorial
2017-07-24Learn Javascript, slideToggle, Javascript and the DOM,
2017-07-22Learn Javascript, text, Javascript and the DOM, Codecademy
2017-07-21Codewars, Replace All Dots, Javascript Regular Expressions
2017-07-21Learn Javascript, next, Javascript and the DOM, Codecademy
2017-07-20Learn Javascript, this, Javascript and the DOM, Codecademy, this() method
2017-07-20Learn Javascript, toggleClass, Javascript and the DOM, Code
2017-07-19Learn Javascript, toggle, Javascript and the DOM, Codecademy
2017-07-19Learn Javascript, show, Javascript and the DOM, Codecademy
2017-07-19Learn Javascript, click, Javascript and the DOM, Codecademy
2017-07-18Learn Javascript, fadeIn, Javascript and the DOM, Codecademy, fadeIn()
2017-07-18Learn Javascript, hide, Javascript and the DOM, Codecademy
2017-07-17Learn Javascript, jQuery Selectors, Javascript and the DOM, Codecademy
2017-07-16Learn Javascript, jQuery, Javascript and the DOM, Codecademy
2017-07-14Learn Javascript, Document Object Model, Javascript and the DOM
2017-07-12Codewars, Sum of Odd Cubed Numbers, Javascript Solution
2017-07-12Learn Javascript, Javascript and the DOM, Linking Javascript, Codecademy



Tags:
javascript
dom manipulation
javascript and the dom
using jQuery
toggleClass method
jQuery js