jqBootstrapValidation
jqBootstrapValidation copied to clipboard
Textarea & Select Menu not working
So I'm able to successfully use jqBootstrapValidation for Input fields. The issue I'm having is with Textareas and Select Menus. I've looked high and low for examples or anyone else having an issue.
Textarea:
<label class="control-label">Enter Message <span class="fa fa-exclamation-circle fontRed"></span></label>
<div class="controls">
<textarea
class="form-control contactTextArea comment"
rows="6"
id="email"
name="email"
required></textarea>
<p class="help-block"></p>
</div>
Select Menu
<label class="control-label">I'd like to know more: <span class="fa fa-exclamation-circle fontRed"></span></label>
<div class="controls">
<select class="form-control">
<option value="">Please Select One </option>
<option>Option 001</option>
<p class="help-block"></p>
</select>
<p class="help-block"></p>
</div>
I'm running jQuery 1.7.2 and running the validation function.
$(function () { $("input,select,textarea").not("[type=submit]").jqBootstrapValidation(); } );
Same issue here! Usong jquery 1.11.0. How to validate select tag?
Try removing the .not("[type=submit]") part of it.