Jquery 尝试实现bootstrap 3.2输入验证
我只是试图为所需的输入字段显示一条错误消息 在尝试在网上搜索之后,我似乎找不到一个关于如何使用它的明确案例 星号表示它是必填字段,但单击提交按钮后,不会显示错误消息。 我将HTML5与Twitter Bootstrap 3.2结合使用 我如何才能做到这一点? 这是我的HTML:Jquery 尝试实现bootstrap 3.2输入验证,jquery,html,twitter-bootstrap,Jquery,Html,Twitter Bootstrap,我只是试图为所需的输入字段显示一条错误消息 在尝试在网上搜索之后,我似乎找不到一个关于如何使用它的明确案例 星号表示它是必填字段,但单击提交按钮后,不会显示错误消息。 我将HTML5与Twitter Bootstrap 3.2结合使用 我如何才能做到这一点? 这是我的HTML: <div class="modal-body"> <div class='form-gro
<div class="modal-body">
<div class='form-group'>
<span class="label label-default col-sm-7 col-sm-offset-2">Enter the reason and comments to stop the Shipping Request</span>
<br />
<label class="col-sm-1 control-label" for="txtStatusComments">Status Comments:</label>
<div class="required col-sm-9 col-sm-offset-1">
<textarea id="txtSPStatusComments" rows="5" cols="80" class="form-control height-auto" data-val="true" data-val-required="You must supply comments if Accepting!"></textarea>
</div>
<div class="hide-text">
<input type="hidden" id="txtStopGridID" />
</div>
</div>
</div>
输入停止装运请求的原因和注释
现状评论:
看看这把小提琴有人把你做了什么专门用来尝试启用Availation?你可以看到我的textarea字段的属性…如果出现任何错误,我只是在JS中放一个引导框警报,指出要修复哪些错误。查看BootstrapValidator.JS