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? -

java - How to create Table using Apache PDFBox -

mpi - Why is MPI_Bsend not returning error even when the buffer is insufficient to accommodate all the messages -