web blazonry web development scripts and tutorials Get best price on Unlocked International Phone w/Triple Cameras
   PHP       Name Generators       Perl       CSS       Javascript       Java       MySql       How Tos       Resources   

Javascript Home


image scripts
  Image Load Order
  Mouse Overs
  SlideShow

JavaScript Resources
  Free JavaScript Books(new)
  Recommended Sites
  Bestselling Books

Bookmark and Share




JavaScript: Select Menu List

Move items from one menu to another by using two multiple-select menus. Make it easy to create a list, for example. I found this useful when creating a distribution list where I had a set of people available on one side and the list on the other.

Here is an example:



 

Here is the source code.

Note that when you submit the form data to process the list, you need to select all the items you want in the list. Only items marked selected are sent with a form. You can do this using the following code:


for (i=0; i<m1.length; i++) {
m1.options[i].selected = true;
}

This will select all of the items in menu1, which will be sent with the form data. Remember, you need to process multiple values being sent with one variable.


 

Newest Pages
Test Google Ads Ver. 2
Free Linux Admin Books
Free Linux Books for Programmers
Free Books for Linux on the Desktop
Free PHP Books
Free JavaScript Books
Free Java Books - Advanced
Free Java Books - Basic
Free Perl Books
Free Python Books
Quote of the Day (PHP)
Debugging Part 2
How to Test Google Ads
Most Popular Pages
Baby Name Generator
U.S. Name Generator
Wu Name Generator
Popup Windows (JavaScript)
Upload and Resize an Image (PHP)
How To Install Apache + PHP + MySQL
Intro to Web Databases (PHP, MySQL)

Least Popular Pages
iNews Applet (Java)
Java Resources
Site Monitor (Perl)
PHP Resources
 
 

  privacy policy     ||     © 1997-2016. astonishinc.com   All Rights Reserved.