I want to show a select box's options from a list with 2 existing options.
What I want seems like this: (spread operator
in JS)
select
[ class "js-wlSize" ]
[ option [ disabled True ] [ text "Choose size" ]
, option [] [ text "Default size" ]
...( List.map (\s -> option [ value s ] [ text s] ) myListData )
]
I also tried with ( :: ), but It worked for 1 default option. I don't know how to work with 2 and more.
Can anyone know how to archive this in Elm?