Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > javascript - dynamically set values in multi select form element

javascript - dynamically set values in multi select form element
Thread Tools
Mac Elite
Join Date: Jan 2003
Location: Melbourne, AU (from Bristol UK)
Status: Offline
Reply With Quote
Feb 25, 2003, 09:14 PM
 
anyone know how I can do this by value, rather than by array index?


I have a multi select box and want to be able to make certain elements selected in the same way as this would work for a popup menu

document.myForm.myPopup.value = 'apple'

How do I do this for a multi-select? (I want to be able to set more than one option to 'on', obviously).
     
Junior Member
Join Date: Aug 2001
Location: Chicago, IL
Status: Offline
Reply With Quote
Feb 27, 2003, 02:42 PM
 
Something like this?

Edit: Ack! Check this url:
http://homer.itd.depaul.edu/users/mh...ltiselect.html
Peace. Love. MacOSX.
     
tintub  (op)
Mac Elite
Join Date: Jan 2003
Location: Melbourne, AU (from Bristol UK)
Status: Offline
Reply With Quote
Feb 27, 2003, 06:24 PM
 
Thanks. That's what I did
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:50 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2