Skip to content

Instantly share code, notes, and snippets.

@shawnsandy
Created June 2, 2017 23:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shawnsandy/0ad17bfaeffd206d9e4094d8f973dec7 to your computer and use it in GitHub Desktop.
Save shawnsandy/0ad17bfaeffd206d9e4094d8f973dec7 to your computer and use it in GitHub Desktop.
Simple example to hide display forms
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