Bootstrap-multiselect: Can't disable multiselect

Created on 17 Oct 2013  路  7Comments  路  Source: davidstutz/bootstrap-multiselect

Hello,

I can't seam to enable/disable a multiselect.
Example: when I go to this page:

http://davidstutz.github.io/bootstrap-multiselect/

And on the chrome console I enter:

$("#example31").prop('disabled', false);

The select turns to the expected state, but the UI doesn't change.

Am I doing something wrong?
Thanks

Most helpful comment

$('#mydropdown').multiselect('disable');
and
$("#mydropdown").multiselect('enable')

All 7 comments

It is not sufficient to toggle the disabled state of the select, you also need to set the button disabled/enabled. I will add two simple methods for this with the next commit.

Use the enable and disable methods.

Thank you @davidstutz :-)

how can we used that enable/disable?

$('#mydropdown').multiselect('disable');
and
$("#mydropdown").multiselect('enable')

Hello,

I can't seem to enable/disable a particular option in multiselect dropdown.
Any solution?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ingenierotecnico picture ingenierotecnico  路  7Comments

APM3 picture APM3  路  3Comments

CodeBrauer picture CodeBrauer  路  4Comments

andriijas picture andriijas  路  8Comments

rodrigonunes100 picture rodrigonunes100  路  3Comments