' the list
<select name="list">
<option value="1" >text
</select>
' a add button
<input type="button" Name="add">
' Script
<script language="vbs"><!--
sub button_onclick()
' this adds an option value=0 and text = x
list.options.add window.Option("0","x")
End sub
--></script
' a delete button
<input type="button" Name="delete">
<script language="vbs"><!--
sub delete_onclick()
' how do I delete the selected option?
End sub
--></script
The options collection has a (gasp!) documented remove method...
--
Michael Harris
Microsoft.MVP.Scripting
--
mik...@mvps.org
Please do not email questions - post them to the newsgroup instead.
--
"Bruce Hittler" <bhit...@siteacquisitions.com> wrote in message
news:xO6s6.2723$Hd3.1...@news1.rdc1.ne.home.com...