Log in

View Full Version : Javascript Help Needed with Multiple Selection Lisbox



mmalik
04-23-2009, 05:31 PM
Hi:

I'm looking for Javascript that does the following:
As copying item(s) from list one to list 2, it needs to not only copy the item, but check the option value (1-5) and accordingly append at the end of the item the value of the option to the second multiple selection list, like

item name >> item name (2)

and copying back from list 2 to list one it should just copy the item name and not the option value,i.e.

item name << item name (2)

I hope this makes sense.

Thanks for the help in advance.

amutha
04-24-2009, 11:27 AM
if you want coding for add and remove items from listbox to another ,
see this link :)

http://ammuseo.wordpress.com/2009/04/13/add-and-remove-text-from-one-listbox-to-otherlistbox/

mmalik
04-24-2009, 03:18 PM
Thanks for the link- I've already got the script to move items between 2 lists.

I needed when copying from list 1, check the option value and depending on that value, it also displays the category when an item is selected to be copied to list 2. And when its removed from list 2, it should hide the category.

But thanks for your help.

Take care