Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chosen - Binding to change event after Chosen is applied to select

I am currently using the jQuery Chosen plugin, and it is working well. Currently, I can bind to Chosen's change event like so:

$('#the_selector').chosen().change( ... );

And this works fine. I have encountered a case, however, where I need to bind to the change event after Chosen has already been applied to the select. Is there a way to do this?

like image 763
Harry Avatar asked Sep 28 '12 08:09

Harry


1 Answers

I was able to bind to the event using:

$('#the_selector').on('change', function(){
    Do stuff
});
like image 172
Harry Avatar answered Sep 29 '22 00:09

Harry