How can I change the default option in a "Select Control"
cledic opened this issue · comments
Hello to all,
I need to change the default option inside a "Select Control", based on the choices of other controls.
The solution I found is to delete all the "options" and rewrite them in the new order. But I haven't tried it yet..
Is there a different solution? Can I set an option to appear as default?
Best Regards
Clemente
Hello!
ESPUI.updateSelect(select_id, "value");
:-)
Have a good day!
Marc.
Aaaah what a misinterpretation!
I was convinced that the command changed the visualized text of the option. Instead it does what I need!
Many many thanks Marc,
Best Regards
Clemente
You are welcome, if any other question, you can ask .... i'm here to help.
I have done many projects with ESPUI.