[SOLVED] Text From Drop down box
Posted: Wed Sep 15, 2004 2:32 pm
Code: Select all
function writeReportTitle()
{
var x = document.form0.status.selectedindex;
var stroutput = document.form0.status.optionsїx].text + " Sales Overview " + document.form0.fstart_date.value + " through " + document.form0.fend_date.value;
document.write(stroutput);
}the spelling of status is the same. I can get form0.status.value just fine, but when I try to get the selectedindex it says the object is null.
any ideas?