bootstrap-multiselect icon indicating copy to clipboard operation
bootstrap-multiselect copied to clipboard

Can't disable multiselect

Open donbonifacio opened this issue 13 years ago • 7 comments

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

donbonifacio avatar Oct 17 '13 16:10 donbonifacio

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.

davidstutz avatar Oct 17 '13 18:10 davidstutz

Use the enable and disable methods.

davidstutz avatar Oct 17 '13 18:10 davidstutz

Thank you @davidstutz :-)

donbonifacio avatar Oct 17 '13 18:10 donbonifacio

how can we used that enable/disable?

sir-bsbaril avatar Apr 18 '16 02:04 sir-bsbaril

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

Wizardre avatar Apr 27 '16 14:04 Wizardre

Hello,

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

Errol12 avatar Feb 03 '17 04:02 Errol12

@Errol12 https://github.com/davidstutz/bootstrap-multiselect/issues/476#issuecomment-71461232

That works for me

armangithub avatar Mar 02 '17 20:03 armangithub