Bootstrap提交按钮没有';不要做出反应


Bootstrap submit button doesn't react

我似乎无法在Chrome或IE中使用这些代码。每当点击"提交"按钮时,似乎什么都不会发生。script.php文件包含一个在SQL数据库中插入电子邮件地址的脚本。

我已经在stackoverflow和其他网站上搜索了三个小时,但没有任何结果。我真的希望你能在这里帮我

<!--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的脚本中的javascript截获的。

我不知道这个脚本应该完成什么,但你可能想看看。例如,在这个脚本的第11行,您有

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

它有效地读取了我在你的网站上看不到的输入字段的值。请考虑不要将不必要的脚本链接到您的页面。

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