How do I make an option selected using JavaScript function?
I want Serie1 to be selectedCode:document.navform.serie.options.length = 4; document.navform.serie.options[0].text = "Serie1"; document.navform.serie.options[0].value = "s1"; document.navform.serie.options[1].text = "Serie2"; document.navform.serie.options[1].value = "s2"; document.navform.serie.options[2].text = "Serie3"; document.navform.serie.options[2].value = "s3"; document.navform.serie.options[3].text = "Serie4"; document.navform.serie.options[3].value = "s4";




Reply With Quote