Bootstrap-multiselect: 4 selected

Created on 26 Jun 2014  ·  3Comments  ·  Source: davidstutz/bootstrap-multiselect

Hi
i have a multiple select form with only 4 options but their text are very long.
Is it possible when i select two options to print 2 selected.
How can i change the default number of selected from 4 items to 2 selected items
untitled
?

question

Most helpful comment

... I also had problems to find it in the documentation, here is what you ( or people in the future, who look this up ) need:

$( '#foo' ).multiselect({
numberDisplayed: 1
});

All 3 comments

Just read the documentation, doh..
On Jun 26, 2014 9:11 PM, "mirroras" [email protected] wrote:

Hi
i have a multiple select form with only 4 options but their text are very
long.
Is it possible when i select two options to print 2 selected.
How can i change the default number of selected from 4 items to 2 selected
items
[image: untitled]
https://cloud.githubusercontent.com/assets/1965794/3399402/a9f3860e-fd3b-11e3-8f4c-e012778e813c.png
?


Reply to this email directly or view it on GitHub
https://github.com/davidstutz/bootstrap-multiselect/issues/335.

yes i am stupid ! i just read it

... I also had problems to find it in the documentation, here is what you ( or people in the future, who look this up ) need:

$( '#foo' ).multiselect({
numberDisplayed: 1
});

Was this page helpful?
0 / 5 - 0 ratings