jquery - Clear select2 without triggering change event -


i have select2 input i'm using , on 'change' i'm grabbing values , performing action. i'm trying clear select2 without triggering change event. possible?

to clear select2 i'm using following code:

$docinput.select2('data', null); 

this clears input desired, triggers change event runs through other code. there must way silence trigger. ideas?

i believe need is:

$docinput.select2('data', null, false);


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -