Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

unobtrusive validation on selectpicker

$(function() {
    if ($(".selectpicker")[0]) {
        $(".selectpicker").selectpicker();
        $('.selectpicker').parents('form:first').validate().settings.ignore = ':not(select:hidden, input:visible, textarea:visible)';
    }
});
Source by andrearegoli.it #
 
PREVIOUS NEXT
Tagged: #unobtrusive #validation #selectpicker
ADD COMMENT
Topic
Name
7+1 =