ASP/VBSCRIPT/ListBox

Hello, I have a listbox with ID="List1" that i need to update from with in a vbscript sub.  any ideas
MICSAsked:
Who is Participating?
 
tonydspaniardConnect With a Mentor Commented:
if what you are doing is using IE do the following:

' Create an option element
' in JScript
' var optOption = document.createElement("OPTION");
' optOption .text="Apples";
' optOption .value="5";
' document.all.List1.add(optOption );

' in VBScript
Set optOption = document.createElement("OPTION")
optOption.text="Oranges"
optOption.value="10"
document.all.List1.add(optOption)


CYA

0
 
fritz_the_blankCommented:
Can you tell us a little more about what you're trying to do please?

Fritz the Blank
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.