Last active
February 26, 2016 10:47
-
-
Save Scretch-1/b0168833cd535ac97326 to your computer and use it in GitHub Desktop.
JS Добавление элементу класса при клике на другой элемент
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Добавление элементу класса или ид при клике на другой элемент | |
// Документация http://codepen.io/michaelkaeser/pen/yAKvn | |
$(document).ready(function() { | |
$('.toggle').on('click',function(){ | |
$('.fades').toggleClass('one'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment