HTML Select input?
How do I use values from select tags? https://code.sololearn.com/WtylniYEvu2Z/?ref=app edit and send this code. It would help more than trying to explain it to me xD
I believe its better to practice than having someone do it for you but 2 ways. 1) In JS get the value the option tag has. if value == "Red" then do this You would get the element by an id, tag name, etc. 2) add a value attribute in the tag itself. <option value="red"> and in js getAttribute("value") returns that string. I would personally go with option 2
The easiest one https://code.sololearn.com/W6T5Vgf79A5B/?ref=app
Youre welcome and no youre not bothering me at all! :)
Wait.... Youre using select tag sorry xD give the select tag an id, getElementById, id.options[id.selectedIndex].value Thats the best bet if my memory is correct
Oh alright, sorry; I'll make the 2 ways if you want
Alright lol give me a few mins
Well, I personally learn better by reading already written code. Helps me understand better. But thanks!
Thanks. I hope I'm not bothering you at all. It just helps me a lot to see the code.
It would help to see the code. I'm already having trouble xD
blackjack on c
self parameter in python class
How to read this?