Question
Follow-up page based on checkbox
I'm trying to create a subscription management page and have several options that people can subscribe to. If they subscribe to anything, I'll take them to a "thank-you" page. But if they check the checkbox "Unsubscribe" I want to take them to a different page.
Here's what I'm trying (which isn't working):
Here's what I'm trying (which isn't working):
function formSubmit(elt) {
if ($jQ("#Unsubscribed").attr('checked')==true) {
var ReturnUrl = 'http://www.google.com'
$jQ("input[name='returnURL']").attr('value', ReturnUrl );
$jQ("input[name='retURL']" ).attr('value', ReturnUrl );
}
return Mkto.formSubmit(elt);
}
I'm loading jQuery on the Document Ready function, and defining $jQ at that point as well.
Any reason why this wouldn't work?
Thanks in advance
Michael Douglas
I'm loading jQuery on the Document Ready function, and defining $jQ at that point as well.
Any reason why this wouldn't work?
Thanks in advance
Michael Douglas