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>
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', ...
Comments
Post a Comment