How can I check if a specific option exists in a select box?
I have the HTML code below: <select> <option>Volvo</option> <option>Saab</option> <option>Mercedes</option> <option>Audi</option> </select> How can I check whether or not the text 'Hyndai' is in the list of options.
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.