Created
May 10, 2011 12:44
-
-
Save jhartikainen/964400 to your computer and use it in GitHub Desktop.
Beautiful jQuery checkebox toggler pattern! (or maybe not...)
This file contains 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
$('#emailAlert').change(function() { | |
$(this.form.emailAddress)[ | |
this.checked ? 'show' : 'hide' | |
](); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment