Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if form bootstrap is valid js

function form_validate(attr_id){
    var result = true;
    $('#'+attr_id).validator('validate');
    $('#'+attr_id+' .form-group').each(function(){
        if($(this).hasClass('has-error')){
            result = false;
            return false;
        }
    });
    return result;
}
Source by github.com #
 
PREVIOUS NEXT
Tagged: #check #form #bootstrap #valid #js
ADD COMMENT
Topic
Name
3+5 =