I'm trying to remove the default value selected in a drop-down box.
The call to the function is this:
onchange="javascript:Remove_Default_Value(this);"
Here is the function:
function Remove_Default_Value(DROPDOWN)
{
var i = DROPDOWN.options.length - 1;
for ( i; i >= 0; i--)
{
DROPDOWN(i).defaultSelected = false;
}
}
The error I'm getting in Firefox is:
"DROPDOWN is not a function".
Any ideas is greatly appreciated.


Reply With Quote

Bookmarks