Marketing Strategies & Ideas For Your Business

", //email:"

Please enter a valid email address

"}, //zip:""{required:"

Please enter your zip/postal code

"}"" }, submitHandler: function() { //validation is successful var form_data = $("#newsletterform").serialize(); console.log(form_data); $("#newsletterform").find("input[name='email']").val('Processing...').end().find("input[type='submit']").attr("disabled", "disabled").val('Please Wait'); setTimeout(function() { $.ajax({ type: "POST", async: false, cache: false, data: form_data, url: "/async/newsletters/subscribe/" + Date.now(), success: function(data) { console.log(data); var values = new Array(); $('input[name="lids[]"]:checked').each(function() { values.push($(this).val()); }); $('.validation.rtnewsletter'). html("

Thank you

We'll be sending your newsletters soon.

") if (s) { s.linkTrackVars = 'events,list1,eVar13'; s.linkTrackEvents = 'event2'; s.events = 'event2'; s.list1 = values; s.eVar13 = $("#zip").val(); s.tl(this, 'o', 'Newsletter Subscription'); } } }); }, 0); } }); })($);

Previous
Next Post »