Hello guys, all right?
So, I’m a beginner in Wix Code, and I am needing to do something really important to my website, but I don’t know if it’s possible, look:
I would like that my client would have the option to select the information, like 3 hours, gasoline “or another thing wich I put there”, after clicking the calc and in the Website Title, be showed the information in the label “economia1”.
I don’t know if you have understood me, but is it possible do this?
You can connect your dropdown element to a dataset list.
Each record will get its own line for the user to select.
Then if you want to change the value that is currently being displayed use this code skeleton in the onChange event for the dropdown element:
export function dropdown_change(event, $w) {
//changes the current item index to the selected index
$w("#dataset").setCurrentItemIndex(event.target.selectedIndex);
}