PDA

View Full Version : Remove items in dropdown menu


Coral_Lover
10-01-2002, 02:20 AM
Hi, does anyone know how to remove all the items in a dropdown menu?

adios
10-01-2002, 02:24 AM
<html>
<head>
<title>untitled</title>
</head>
<body>
<form>
<select name="suicidal" onchange="this.length=0">
<option>one</option>
<option>two</option>
<option>three</option>
<option>four</option>
<option>five</option>
</select>
</form>
</body>
</html>

Coral_Lover
10-01-2002, 02:31 AM
Hmm.. what if the dropdown menu is dynamic and i can only use a javascript function to remove all the items when i click on a button, how should i do it?

Coral_Lover
10-01-2002, 02:40 AM
Alright! THanks adios!! I know how to do now! Thank u so much :thumbsup: