The below script is called from an onChange command. I need the first option to always be blank but it's not. How can I make sure the first option is always blank with the below script?
var sub = 0
for (var i = 0;i < ListOne;i++)
{
if (document.form.ListOne)
{
var newoption = new Option();
newoption.value = LO;
newoption.text = LO;
document.form.ListOne.options = newoption;
sub += 1;
}
I've hardcoded a blank <option> but it is ignored whenever the onchange command is executed.
var sub = 0
for (var i = 0;i < ListOne;i++)
{
if (document.form.ListOne)
{
var newoption = new Option();
newoption.value = LO;
newoption.text = LO;
document.form.ListOne.options = newoption;
sub += 1;
}
I've hardcoded a blank <option> but it is ignored whenever the onchange command is executed.