Bootstrap-multiselect: Trigger onChange after select/deselect options

Created on 16 Apr 2014  路  5Comments  路  Source: davidstutz/bootstrap-multiselect

Hi all.

Sorry for the dumb question, but how can I trigger the onChange for my .multiselect after selecting/deselecting options (.multiselect('select', value) or .multiselect('deselect', value))?

question

Most helpful comment

@Giovancruz and @proshuai I believe the correct way of triggering this is with a 2nd parameter with the following method, which worked for me:

$('#multiselect').multiselect('deselect', value, true)

All 5 comments

The methods select and deselect dont trigger this event automatically, so you can just call $('#multiselect').trigger('change');.

this question i met, last week, it works well, but today is not work

This .trigger('change') didn't work

@Giovancruz and @proshuai I believe the correct way of triggering this is with a 2nd parameter with the following method, which worked for me:

$('#multiselect').multiselect('deselect', value, true)

@Giovancruz and @proshuai I believe the correct way of triggering this is with a 2nd parameter with the following method, which worked for me:

$('#multiselect').multiselect('deselect', value, true)

You saved me!! <3 haha

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jojoshua picture Jojoshua  路  8Comments

mirroras picture mirroras  路  3Comments

Calaelen picture Calaelen  路  9Comments

echan00 picture echan00  路  6Comments

APM3 picture APM3  路  3Comments