bootstrap multiselect : TypeError: $(…).multiselect is not a function

后端 未结 7 972
半阙折子戏
半阙折子戏 2020-12-20 15:19

I want to use the bootstrap multi select plugin : Bootstrap Multiselect

but it is not working for me.



        
7条回答
  •  攒了一身酷
    2020-12-20 15:20

    Try it like this:

    jQuery('.mandator_select').multiselect({
        enableHTML: true
        ,optionLabel: function(element) {
            return ' '+ $(element).text();
        }
        ,selectAllText: 'Alle auswählen'
        ,nonSelectedText: 'Keins ausgewählt'
        ,nSelectedText: 'selektiert'
        ,allSelectedText: 'Alle ausgewählt'
    });
    
    
    
    
    
    
    
    
    

提交回复
热议问题