[Javascript] MM_jumpMenu - repeted values
HTML Code:
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
HTML Code:
<select name="List" onchange="MM_jumpMenu('parent',this,0)">
<option value="" >Shrubs</option>
<option value="?1" >Shrub 01</option>
<option value="?2" >Shrub 02</option>
<option value="?3" >Shrub 03</option>
</select>
If someone clicks on the drop down menu the title of the drop down appers in the drop down list! how can I remove this repitition?
Re: [Javascript] MM_jumpMenu - repeted values
Remove <option value="" >Shrubs</option>... is that what you mean?
Re: [Javascript] MM_jumpMenu - repeted values
Yes but I want to show 'Shrubs' in the inactive box before it gets clicked on?
so the box shows...
Shrubs
then it gets clicked and shows...
Shrub 01
Shrub 02
Shrub 03
at the moment when it is clicked it shows...
Shrubs --<because this is first in the option list>
Shrub 01
Shrub 02
Shrub 03