Created
December 23, 2014 18:10
-
-
Save philbar/9df7bee394b93e0a6848 to your computer and use it in GitHub Desktop.
Auto-Hide Form Error Message in Unbounce
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
<script> | |
lp.jQuery(function($) { | |
// Hide form error message on click | |
$( ".lp-form-errors" ).click(function() { | |
$( ".lp-form-errors" ).fadeOut("slow"); | |
}); | |
// Auto-hide form error message after 10 seconds | |
$( ".lp-pom-button" ).click( function() { | |
setTimeout(function() { | |
$( ".lp-form-errors" ).fadeOut("slow"); | |
}, 10000); | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment