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
Post a Comment