Making a reset button for my dropbox

I have a conditional dropbox selector on my site and I am trying to give it a reset button so that users can choose different answers if they want to go back, however when I click the button to reset the options it only give me the previously selected choice.


export function Reset_click(event, $w) {

    $w('#model').value = undefined;

    $w('#make').value = undefined;

    $w('#year').value = undefined;

    $w('#year').resetValidityIndication();

    $w('#make').resetValidityIndication();

    $w('#model').resetValidityIndication();

}

Hi,
To reset the dropdown to have no option selected, set the selectedIndex property to undefined.
$w (“#myDropdown”). selectedIndex = undefined;
Click here to learn more.

thanks, it is working now.

This works, too.
$w(‘#dropdown1’).resetValidityIndication();