[Javascript] Select / Option Question
Peter Brunone
peter at brunone.com
Thu Jul 19 11:15:34 CDT 2001
Standard Javascript form properties will let you add/remove options by
referring to them in the following way:
document.formName.selectName.options[optionIndex].value = "someValue";
document.formName.selectName.options[optionIndex].text =
"someDisplayedText";
Cheers,
Peter
----- Original Message -----
From: "Howard Salter" <HowardSalter at PenningtonSeed.com>
To: <javascript at LaTech.edu>
Sent: Thursday, July 19, 2001 11:16 AM
Subject: [Javascript] Select / Option Question
| Does anyone know if there's a property that allows me to set options
visible
| or not through the DOM? Or if there's a method that will allow me to
| dynamically grow a list of options in a select?
|
| TIA,
| Howard
More information about the Javascript
mailing list