javascript - unable to get the property options of undefined or null reference in ie 10 it is working fine in less -


function getselectedindex(element, value) {     var selectedindex = 0;     for(i=0; i<element.options.length; i++) { // error here         if(element.options[i].value == value) {             selectedindex = i;             break;         }     }     return selectedindex; } 

they calling above function here

// myform.freq.selectedindex = getselectedindex(myform.freq, freqval); 


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -