Adding Options 2 | JavaScriptSource

Adding Options 2

Carl Leiby Jul 30, 2007

General

Add or change options on a form select menu. This script will also allow sub-group items, for additional selections.



Select: all | none


Select: all | none

Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: addingOptions.js


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


Leave a Response

(2 comments)

I'm not sure as I would need to see how it is implemented. In order to answer you question properly, you will need to post it over on [a href="http://www.webdeveloper.com/forum/forumdisplay.php?f=3"]the JavaScript forum[/a]. Thanks!

Lee Jan 16, 2009

Hi there,[br /][br /]Great code idea, but when I try to make it work on a https environment, it just won't run. Do you have any idea of a way around it?[br /][br /]Thanks a lot[br /][br /]Gui

Guilherme Altmayer Nov 25, 2008