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
Post a Comment