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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks a lot
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