Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Clearing contents of a dropdown

Avatar

Former Community Member
Is their a way to clear all items in a dropdown through javascript?
2 Replies

Avatar

Former Community Member
For those who may want to know how to do this, you can do it as follows (in JavaScript, assuming you're using this script in an event on the drop down list or list box itself):



this.clearItems();


Stefan

Adobe Systems