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))?
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
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)