Why is my selection not clearing after hitting clear selection button?

I have a JSFiddle here and I am wondering why the selection is not getting cleared or basically switching to -No Selection- option when Clear Selection button is clicked?

You and I have had this conversation before :wink:

1 Like

It is not happening because the click event listener is not a mind reader.
The click event listener is just

console.log("button clicked");

And surprise, surprise, “button clicked” appears in the console.
You may not see it there because of all of the warnings and issues being generated and being reported in the console.
nd if you want any further assistance make it easier for helpers by removing script and css from the html and putting in their own files.

1 Like

Thanks. It’s working after I used the following:
$("#commentTag").val('').trigger('change');

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.