• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

move content one select to another

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

What I am trying to do is a pretty common UI convention - in that I will have 1 select that allows multiple selects - I will have an add and remove button and then I will have a second select (that also allows multiple selects). The first select will contain a superset of data - the second select is meant for the user to populate based on adding (and removing) data from the first select.

FirstOff, I am wondering if there is a link to some sample code to do this as it is so common.

Secondly, if there isn't - the parts I am finding tricky are the fact that they can add and remove multiple - and then when you add a value into the second subset select it needs to check that that value doesn't already exist - so it doesn't add it to the list twice.

Many Thanks - this is a very helpful site.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://www.devx.com/getHelpOn/10MinuteSolution/16372/1954?pf=true
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic