Link to home
Start Free TrialLog in
Avatar of neha_john
neha_john

asked on

To add and remove data in between 2 listboxes in javascript

I wanted to add or remove data inbetween listboxes by using javascript.
i got code from this following link..
http://www.codeproject.com/KB/aspnet/Listbox_or_combo_box.aspx
but when ever i click add button nothing is happenening....
can u pls tell wht is the meaning of this 2 lines of code
 var varFromBox = document.all(lstbxFrom);
 var varToBox = document.all(lstbxTo);  

pls help me ..thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of David H.H.Lee
David H.H.Lee
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
hi
That means you are creating a object of the control in the page . "VAR" means variable type and "document.all" from all the control in the document , create the object of the control with name "lstbxFrom" and "lstbxTo". From there on you can access the two listbox using the object varFromBox ,varToBox
Thanks
P.Ramprathap
Avatar of neha_john
neha_john

ASKER

thanks a lot