我如何在下面的代码中添加某种形式的JQuery解决方案,以便用户使用重定向,但回复说回过去好好回答'感谢您订阅'?
另外,这是最好的方法--JQuery解决方案吗?或者我应该尝试JS
<form method="post" class="af-form-wrapper" action="http://www.aweber.com/scripts/addlead.pl" >
<div style="display: none;">
<input type="hidden" name="meta_web_form_id" value="1337" />
<input type="hidden" name="meta_split_id" value="" />
<input type="hidden" name="listname" value="blah" />
<input type="hidden" name="redirect" value="http://www.aweber.com/thankyou-coi.htm?m=text" id="1237" />
<input type="hidden" name="meta_adtracking" value="blah" />
<input type="hidden" name="meta_message" value="1" />
<input type="hidden" name="meta_required" value="name,email" />
<input type="hidden" name="meta_tooltip" value="" />
</div>
<input type="text" name="name" autocomplete="off" required placeholder="First name">
<input type="text" type="email" name="email" required placeholder="Your Email">
<input type="submit" name="submit" value="Subscribe">
</form>
&#13;
答案 0 :(得分:0)
$("form").submit(function(){
alert("Thanks for subscribing");
});
Stack overflow jQueryUI Modal confirmation dialog on form submission