Skip to content

Instantly share code, notes, and snippets.

@Pavracer
Last active December 25, 2017 21:39
Show Gist options
  • Select an option

  • Save Pavracer/c770aaa4f6c1650de7601780661dfc69 to your computer and use it in GitHub Desktop.

Select an option

Save Pavracer/c770aaa4f6c1650de7601780661dfc69 to your computer and use it in GitHub Desktop.
<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