javascript - formvalidation jquery form group -


i using formvalidation plugin: have form-group, inside of 2 input fields, 1 being validated 1 not. yet when click validate red border applied in form-group though should not validated.

any ideas why?

   <div class="form-group">     <div class="row">         <div class="col-xs-4">            <input type="text" class="form-control" name="phonenumber" placeholder="phone" />         </div>          <div class="col-xs-4">            <input type="text" class="form-control" name="rooms" placeholder="# of bedrooms" />         </div>     </div> </div> 

http://jsfiddle.net/k281at67/48/

update

add each object , works wish.

row: '.col-xs-4', 

as in

phonenumber: {   row: '.col-xs-4', // adding each object fixes issue.   validators: {     country: 'united states',     ... 

jsfiddle link


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -