+ 2

How to get the value of Select Option in Javascript?

A select html look like this: <select id="mine"> <option value="1">Hello</option> <option value="2">World</option> </select> How do i get the value in javascript? I always got an error message and I'm desperate right now :)

12th May 2017, 9:58 PM
Chandra Wibowo
Chandra Wibowo - avatar
3 Antworten
12th May 2017, 10:17 PM
Burey
Burey - avatar
+ 7
👌
12th May 2017, 10:31 PM
Burey
Burey - avatar
+ 2
Thank you very much @Burey :)
12th May 2017, 10:23 PM
Chandra Wibowo
Chandra Wibowo - avatar