Skip to content

Instantly share code, notes, and snippets.

@johno
Created February 1, 2013 19:53
Show Gist options
  • Save johno/4693655 to your computer and use it in GitHub Desktop.
Save johno/4693655 to your computer and use it in GitHub Desktop.
def will_toggle_function
<<-JS
$.fn.willToggleDiv = function(div) {
$(div).slideToggle(100)
.find('input')
.val(null);
}
JS
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment