Created
April 25, 2013 13:20
-
-
Save jhammann/5459628 to your computer and use it in GitHub Desktop.
A simple way of showing or hiding something like an alternate shipping address. Use this when you have a checkbox, link or something else 'clickable'
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
$('#alt_shipping_address').click(function() { | |
if( $(this).is(':checked')) { | |
$(".shippingContainer").show(); | |
} else { | |
$(".shippingContainer").hide(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment