managing subscriptions

In order to manage your subscriptions, please enter your email address in the field below. You will be sent a message containing the link to access to your reserved area. Email ( function($){ $(document).ready(function($){ var stcr_request_form = $('form[name="sub-form"]'); var email_input = $('form[name="sub-form"] input[name="sre"]'); /** * Validate the email address. * @since 09-Sep-2016ss * @author reedyseth */ stcr_request_form.on('submit',function (event) { var emailRegex = /^(([^()\[\]\\.,;:\[email protected]"]+(\.[^()\[\]\\.,;:\[email protected]"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; var email = $('input[name="sre"]'); if( email.val() !== "email" && email.val() === "" ) { event.preventDefault(); $(".notice-email-error").html(" Please enter your email").show().delay(4000).fadeOut(1000); } else if( emailRegex.test( email.val() ) === false ) { event.preventDefault(); $(".notice-email-error").html(" Email address is not valid").show().delay(4000).fadeOut(1000); } }); email_input.focus(function(){ if( $(this).val() == "email" ) { $(this).val(""); } }); email_input.blur(function(){ if( $(this).val() == "" ) { $(this).val("email"); } }); }); } )( jQuery );
Share this:
Read the rest

Share this: