| 
 Posted by mayayana on 12/30/06 17:29 
It's not clear whether you've got your 
answer yet, in all this confusion. :) 
 
So just in case.... 
  In addition to McKirihan's method of 
looping through pre-existing options, you 
can also load them and clear them dynamically. 
 
   It's awkward because it's non-intuitive. 
The DOM treats an option as an object, so you have 
to "create" them and add them to a SELECT:: 
 
Dim Opt 
 
           Set Opt = document.createElement("OPTION") 
               Opt.text = '-- text of option here. 
               Opt.value = '-- hidden value here. 
               FromMonthSelection.add Opt 
            Set Opt = Nothing 
 
To clear options just use: 
 
FromMonthSelection.length = 0
 
  
Navigation:
[Reply to this message] 
 |