![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I need to add/remove the items from the dropdownlists/listboxes. I tried the following code: document.getElementById("ListBox1").add(new Option("5","5")); The code adds the new item for a moment (I can see it in the listbox and can retrieve it by the code) but then the new items disappears from the listbox. How can I fix it? Thanks. |
#3
| |||
| |||
|
|
I need to add/remove the items from the dropdownlists/listboxes. I tried the following code: document.getElementById("ListBox1").add(new Option("5","5")); The code adds the new item for a moment (I can see it in the listbox and can retrieve it by the code) but then the new items disappears from the listbox. How can I fix it? Thanks. |
#4
| |||
| |||
|
|
they will stay until you postback. you will need to recreate on the postback render. -- bruce (sqlwork.com) "Vik" <viktorum@==yahoo.com==> wrote in message news:uvrR9LhvFHA.3984 (AT) TK2MSFTNGP09 (DOT) phx.gbl... I need to add/remove the items from the dropdownlists/listboxes. I tried the following code: document.getElementById("ListBox1").add(new Option("5","5")); The code adds the new item for a moment (I can see it in the listbox and can retrieve it by the code) but then the new items disappears from the listbox. How can I fix it? Thanks. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |