Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

option object

i have seen one thing common in filling select list dynamically
that is a line like

new option(...arguments..)

can any one tell me how to create and use this option object

manish jaiswal

i am unable to redirect from an asp page to an asp.net page hw can i do it
manish jaiswal
[321 byte] By [manish jaiswal] at [2007-11-9 17:49:19]
# 1 Re: option object
Hi,

var a = new option(text, value, defaultSelected, selected)

1. text = (Optional) Specifies the text to display in the select list.
2. value = (Optional) Specifies a value that is returned to the server when
the option is selected and the form is submitted.
3. defaultSelected = (Optional) Specifies whether the option is initially
selected (true or false).
4. selected = (Optional) Specifies the current selection state of the option
(true or false).

Reference URL:
http://developer.netscape.com/docs/manuals/communicator/jsref/index.htm

:)
dman

"manish jaiswal" <m_jaiswal1@yahoo.com> wrote:
>
>i have seen one thing common in filling select list dynamically
>that is a line like
>
>new option(...arguments..)
>
>can any one tell me how to create and use this option object
>
>manish jaiswal
>
>i am unable to redirect from an asp page to an asp.net page hw can i do
it
>manish jaiswal
dman at 2007-11-11 23:17:16 >