$(function (){ $("select").change(function(){ $(\'#DepartForm\').bootstrapValidator(\'resetForm\'); $("#name").val(null); $(\'#DepartForm\').bootstrapValidator({ excluded: [\':disabled\', \':hidden\', \':not(:visible)\'] }).bootstrapValidator(\'validate\'); }); });