bootstrap 4 text boxe validator code example
Example 1: bootstrap forms
Example 2: 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;
}