Skip to content

Instantly share code, notes, and snippets.

@jhammann
Created April 25, 2013 13:20
Show Gist options
  • Save jhammann/5459628 to your computer and use it in GitHub Desktop.
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'
$('#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