Selected attribute for Select element

  • mossi9682-1353848981532184667

    mossi

    8 days ago

    I have a select element in my form that has a list of countries. I repeated the "Options" over an array variable with all the countries. When user selects a country, the selection value is save in a variable. How do I set the "selected" attribute for this select list? I know how to do this on a normal select list but not on one with options generated from repeat over an array.

    Thank you
  • lucasg-1353911466889314364

    Lucas G

    7 days ago

    It’s the same as if it was with individual option elements
  • It’s a Boolean attribute
  • Item equals “condition

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.