Add-Remove Options (DOM) | JavaScriptSource

Add-Remove Options (DOM)

Keith Jenci Aug 31, 2007

General

Add or remove objects in a select list, using the DOM. This script was written to work with DOM Level 1 and DOM Level 2 capable browsers, with try/catch logic included for IE use.






Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: addRemoveOptions.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

(0 comments)