jqBootstrapValidation icon indicating copy to clipboard operation
jqBootstrapValidation copied to clipboard

Textarea & Select Menu not working

Open wsfuller opened this issue 11 years ago • 2 comments

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(); } );

wsfuller avatar Mar 11 '14 18:03 wsfuller

Same issue here! Usong jquery 1.11.0. How to validate select tag?

vasnakos avatar Oct 30 '14 11:10 vasnakos

Try removing the .not("[type=submit]") part of it.

AmarPrabhu avatar Dec 15 '14 11:12 AmarPrabhu