Hello,
I have a html select box. And a search field (input type)
When i Search for something new a javascript function first clears the selectfield
But Javascript gives the following error:
gs.options.remove is not a function
This is the function
function clearScholen()
{
for (var i=gs.options.length;i>=0;i--)
{
gs.options.remove(i);
}
}
and the value of gs =
<select style="width: 420px; height: 150px;" name="selectbox" size="5">
Whats going wrong?