Clear form control
Hi,In my javascript clear my all form controls but i want to clear the dropdown box
My javascript as below
function ClearAllControls ()
{
for (i=0; i<document.forms[0].length; i++)
{
doc = document.forms[0].elements[i];
switch (doc.type)
{
case "text" :
doc.value = "";
break;
case "textarea" :
doc.value = "";
break;
case "MultiLine":
doc.value = "";
break;
case "checkbox" :
doc.checked = false;
break;
case "radio" :
doc.checked = false;
break;
default :
break;
}
}
}
In this javascript how could i add to clear the dropdown box value.
Could anybody guide to me.
Thanks and regards
brite