Last active
December 25, 2017 21:39
-
-
Save Pavracer/c770aaa4f6c1650de7601780661dfc69 to your computer and use it in GitHub Desktop.
This file contains hidden or 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> | |
| jQuery( document ).ready(function() { | |
| jQuery('.horizontal-optin #et_pb_signup_email').val('Your Email'); | |
| jQuery('.horizontal-optin .et_pb_contact_form_label[for="et_pb_signup_email"]').text('Your Email'); | |
| jQuery('.horizontal-optin #et_pb_signup_email').attr('placeholder',''); | |
| var Input = jQuery('.horizontal-optin #et_pb_signup_email'); | |
| var default_value = Input.val(); | |
| Input.focus(function() { | |
| if(Input.val() == default_value) Input.val(""); | |
| }).blur(function(){ | |
| if(Input.val().length == 0) Input.val(default_value); | |
| }); | |
| }); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment