Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

move items from one listbox to another client-side vbscript

Status
Not open for further replies.

ssue

Programmer
Nov 22, 2002
2
US
I am trying to move items from one listbox to another with client-side vbscript. I cannot even get an item added.
document.frmClassListQuery.lbSelectSchools.Items.Add("xx")
generates an "object doesn't support property method" error.

Does anyone know how to do this?
 
Set oNew = document.createElement(&quot;<OPTION Name=XX>&quot;)
document.frmClassListQuery.lbSelectSchools.add oNew
oNew.InnerText = &quot;YY&quot;
Set oNew = Nothing
document.frmClassListQuery.lbSelectSchools.Remove(1) Jon Hawkins
 
thanks so much. That is very helpful!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top