Hi and thanks for helping (or just looking),
I am trying to have a section of HTML appear when a user selects one of the options in a drop down box on my page.
Right now I am able to do this, but the code looks like junk and I know there is a better way out there somewhere.
Right now I do the job with a switch like this:
case 3:
FirstArea.innerHTML=('<select name="SelectSSShow" style="font-size:9pt" title="SelectSSShow"onChange="FuncSSShow();">'+
'<option value="-NOT SELECTED-">-Select- </option>'+
'<option value="Appointment">Appointment Card</option>'+
'<option value="BusCard">Business Card</option>'+
'<option value="NewItem">New Item Request</option>'+
'<option value="ReqConv">Request Conversion</option>'+
'<option value="ReqTrial">Request Trial</option>'+
'<option value="LabCoat">Lab Coat Order</option>'+
'</select>');
break;
Do anyone know a better way?
Thanks,
Will
I am trying to have a section of HTML appear when a user selects one of the options in a drop down box on my page.
Right now I am able to do this, but the code looks like junk and I know there is a better way out there somewhere.
Right now I do the job with a switch like this:
case 3:
FirstArea.innerHTML=('<select name="SelectSSShow" style="font-size:9pt" title="SelectSSShow"onChange="FuncSSShow();">'+
'<option value="-NOT SELECTED-">-Select- </option>'+
'<option value="Appointment">Appointment Card</option>'+
'<option value="BusCard">Business Card</option>'+
'<option value="NewItem">New Item Request</option>'+
'<option value="ReqConv">Request Conversion</option>'+
'<option value="ReqTrial">Request Trial</option>'+
'<option value="LabCoat">Lab Coat Order</option>'+
'</select>');
break;
Do anyone know a better way?
Thanks,
Will