Skip to content

Instantly share code, notes, and snippets.

@philbar
Created December 23, 2014 18:10
Show Gist options
  • Save philbar/9df7bee394b93e0a6848 to your computer and use it in GitHub Desktop.
Save philbar/9df7bee394b93e0a6848 to your computer and use it in GitHub Desktop.
Auto-Hide Form Error Message in Unbounce
<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