Demonstrating Select Add/Remove Methods

This page demonstrates the add and remove methods of the select object. The options object also provides add and remove methods which are demonstrated here.

The standards definitions of the methods and the varying arguments were discussed earlier. The form below demonstrates these options. The information provided in parentheses beside the buttons indicates which of the argument variations are being demonstrated. View the source code of this document to see the JavaScript.

Demo: Select Add/Remove Methods

(reference: sel.options[2])

(index: 2)

(index: 1)

Back to Add/Remove Information