Hi Team,
I want to set the default value from the dropdown value. How can I do this?
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
You can set the default a couple of different ways:
Use the selectedIndex property:
$w("#myDropdown").selectedIndex = 0; // select first option as default
Use the value property:
$w("#myElement").value = "red"; // choose the color red as default