| home / programming / javascript / beginning / chap6 / 5 |
[previous] [next] |
|
Beginning JavaScriptTry It Out – Adding and Removing List OptionsLet's use the 'list of days' example we saw above to demonstrate adding and removing list options.
Save this as ch6_examp7.htm. If you type the page in and load it into your browser, you should see the form below. Click the Remove Wednesday button and you'll see it disappear from the list. Add it back by clicking the Add Wednesday button. If you try and add a second Wednesday or remove a non-existent Wednesday, then you'll get a polite warning telling you that you can't do that.
|
| home / programming / javascript / beginning / chap6 / 5 |
[previous] [next] |
Created: February 7, 2001
Revised: February 7, 2001