Bootstrap 提交按钮没有反应

Bootstrap submit button doesn't react

我似乎无法在 Chrome 或 IE 中使用此代码。每当单击 'Submit' 按钮时,似乎什么也没有发生。 script.php 文件包含将电子邮件地址插入 SQL 数据库的脚本。

我已经在 Whosebug 和网络的其余部分搜索了三个小时,但没有任何结果。我真的希望你能在这里帮助我

<!--e-mail form-->
<form role="form" method="POST" action="script.php">
    <div class="form-group">
        <label for="email">email</label>
        <input type="email" name="email" class="form-control" id="email" placeholder="E-mail adress" required/>
    </div>
    <div class="form-group">
        <button type="submit" class="btn btn-default">Submit</button>   
    </div>                  
</form>

如果你想看IRL:co-searching.be

您在 contact_me.js (jqBootstrapValidation) 中有错误。查看控制台日志。

这不是 bootstrap 的问题。您的表单提交行为正在通过名为 contact_me.js.

的脚本中的 javascript 拦截

这个脚本应该完成什么,我不知道,但你可能想检查一下。例如,此脚本的客栈第 11 行你有

var name = $("input#name").val()

这有效地读取了我在您的站点中看不到的输入字段的值。考虑不要将不必要的脚本链接到您的页面。