I'm trying to get the text of the selected `option` in a `select` dom 
element.

temp1 is the event object from a change in the select and you can see what 
values it exhibits in devtools 

<https://lh3.googleusercontent.com/-DO4L7c0yz9w/Vzr0ibYdthI/AAAAAAAAAeA/NflDdALarqwCG5QF_eBbu8epQzFgTJkBQCLcB/s1600/Screenshot%2Bfrom%2B2016-05-17%2B12-27-16.png>

`selectedOptions` is an array of 1 item


<https://lh3.googleusercontent.com/-QpzSifzJtAw/Vzr02tb68iI/AAAAAAAAAeE/fH1BAotnRV4LrnfyQCUS-6qoegL38urLgCLcB/s1600/Screenshot%2Bfrom%2B2016-05-17%2B12-33-02.png>
So I expected  `Json.at ["target", "selectedOptions"] <| Json.tuple1 
identity ("text" := Json.string)` to work, but it does not.

Any advice?

Simon

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to