获取iPhone Go按钮以提交表单

时间:2015-07-11 09:37:12

标签: html iphone html5 twitter-bootstrap twitter-bootstrap-3

我的网站上有一个邮件列表注册表单,触发它的按钮已经<input type="submit"。但是,当我在iPhone上访问我的网站时,go按钮不会执行任何操作。我该如何解决?这是我的完整代码:

<div id="mc_embed_signup">
            <form action="//isaacadni.us10.list-manage.com/subscribe/post?u=0db50d6b1ce1ac34d3194a969&amp;id=0026019372" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
                <div class="form-group">
                    <input type="email" value="" name="EMAIL" class="email form-control input-lg" id="mce-EMAIL" placeholder="email address" required>
                    <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
                    <div style="position: absolute; left: -5000px;"><input type="text" name="b_0db50d6b1ce1ac34d3194a969_0026019372" tabindex="-1" value=""></div>
                    <br>
                    <input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" btnSubmitclass="btn btn-primary btn-lg"> 
                </div>

            </form>
        </div>

2 个答案:

答案 0 :(得分:1)

target="_blank"元素中删除<form>

答案 1 :(得分:0)

您可以通过将输入行替换为

来强制它
<input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" onclick="document.getElementById('mce-EMAIL').submit()" btnSubmitclass="btn btn-primary btn-lg">