Replies: 1 comment
-
Hi @emb-karan, This seems to be related to the Select2 JavaScript package, not I hope my answer helps you. Best, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to clear a selected option using js using the following code
$('#select').select2({ placeholder: '', allowClear: true });
and
$("#select2-id-xyz-container").val(null).trigger("change");
That resets the data only over the UI but when I click on submit, cleared data may be still present and got saved
Beta Was this translation helpful? Give feedback.
All reactions