javascript - Updating Chosen Dynamically -


i'm using chosen plugin , got 10 000 options in dropdown. after user selects option want reset chosen it's default option. when liszt-update gets triggered takes 5 seconds dropdown render (as contains many options). there way around it?

my code:

$('#chosen_orgs').val('0').trigger('liszt:updated');

thanks.

you manually update original select instead.

$('#chosen_orgs, #original_select_id').val('0'); 

also, fyi, select2 more well-developed fork of chosen, , syntax conversion simple.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -