Bootstrap $ ('. Multiselect'). multiselect () CONFLICT

I have a page in which I use handlebars to populate two form elements one by one. Both forms have multi-accounts with bootstrap.

I need to run

$('.multiselect').multiselect()

when rendering the second form, but as bootstrap has already added

'.multiselect' 

and when I try to use

('.multiselect').multiselect()

the first form is confused

One solution that I see is using different class names for multiple selections, but I doubt it looks like a hack to me.

Any suggestions

+4
source share
1 answer

(http://davidstutz.imtqy.com/bootstrap-multiselect/), , id.

: <select id="example1" style="display: inline-block;">...</select>

, 'id' generic classname multiselect.

0

All Articles