Clear Selection Dropdown

To make a selection from the dropdown to from select field, jQuery provides and option for this

$("[data-container='logoInfo'] select").prop("selectedIndex", 0);

This part of the code is a jQuery method that sets the selectedIndex property of the selected <select> element to 0. The selectedIndex property determines which option is selected in the dropdown list. By setting it to 0, you are selecting the first option in the list.

Leave a comment

Your email address will not be published. Required fields are marked *