Created
June 2, 2017 23:40
-
-
Save shawnsandy/0ad17bfaeffd206d9e4094d8f973dec7 to your computer and use it in GitHub Desktop.
Simple example to hide display forms
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
u(".widget-forms").each(function (el, i) { | |
console.log(el); | |
var button = u(el).find('.tag-button'); | |
var frm = u(el).find('.hide-tags'); | |
console.log(frm); | |
u(button).on('click', function () { | |
console.log(u(button).text()); | |
u(frm).toggleClass("bluform"); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment