Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Trigger change on text not work #649

Open
XShandow opened this issue Jan 15, 2019 · 0 comments
Open

Trigger change on text not work #649

XShandow opened this issue Jan 15, 2019 · 0 comments

Comments

@XShandow
Copy link

JS

$("#add").click(function () {
       debugger

       $("#cvk").val("asdasda").change();

       $("#state").val("1").change();
   });

cvk: {
               trigger: 'change',
               validators: {
                   notEmpty: {
                       message: 'The CVK is required'
                   }
               }
           },
           state: {
               trigger: 'change',
               validators: {
                   notEmpty: {
                       message: 'The State is required'
                   }
               }
           },

JSP

 <div class="form-group">
                                        <label
                                                class="col-xs-4 col-sm-4 col-md-4 col-lg-4 control-label">Keyblock CVK:</label>
                                        <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
                                            <input type="text" class="form-control" id="cvk" name="cvk"
                                                   placeholder="Search or input CVK">
                                        </div>

                                    </div>
         
                                    <div class="row">

                                        <span class="col-xs-2 col-sm-2 col-md-2 col-lg-2 control-label">State:</span>
                                        <div class="form-group col-xs-2 col-sm-2 col-md-2 col-lg-2">
                                            <select class="form-control" id="state" name="state">
                                                <option value="">Select Subject</option>
                                                <option value="1">Subject 04</option>
                                                <option value="2">Subject 05</option>
                                                <option value="3">Subject 06</option>
                                            </select>
                                        </div>
                                    </div>

The "cvk" is input, change is not work.
The "state" is select ,change is work.

BootstrapValidator version v0.4.4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant