Skip to content

Instantly share code, notes, and snippets.

@sehugunin
Created November 13, 2013 14:59
Show Gist options
  • Save sehugunin/7450449 to your computer and use it in GitHub Desktop.
Save sehugunin/7450449 to your computer and use it in GitHub Desktop.
js to show hide div
<script type="text/javascript">
jQuery(function() {
jQuery('#WorkPhone').on('blur', function() {
if(jQuery(this).val().length > 0) {
jQuery('#showDiv').delay(1000).fadeIn();
} else {
jQuery('#showDiv').delay(1000).fadeOut();
}
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment