javascript - How do I select a value from a dropdownlist case insensitive? -


i trying find "cat" in dropdown values of dropdown ["cat","rat","mat"] result not able find text , dont have id "cat" find id. suggestion?

edit: lowercase() change "cat" cat right?? dropdown has "cat"

try compare values lowercase :

if(myvalue.tolowercase() === ddl[i].tolowercase()) {     //... } 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -