[Javascript] Select / Option Question

Howard Salter HowardSalter at PenningtonSeed.com
Thu Jul 19 11:30:44 CDT 2001


Thanks Peter

-----Original Message-----
From: Peter Brunone [mailto:peter at brunone.com]
Sent: Thursday, July 19, 2001 9:16 AM
To: javascript at LaTech.edu
Subject: Re: [Javascript] Select / Option Question



    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

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript



More information about the Javascript mailing list