fifo85 wrote:
> Thanks for the response Mick,
>
> Just one question, What is the document.forms[0] suppose
to be?
> I have tried the name of my asp page followed by
forms[0] followed by the name
> of my drop down
"document.forms[0]" is a reference to the first form in the
document.
Since you didn't name your form, I assumed you have only one
form in
your document. Normally, you would name your form
<form name="foo">
Then you can reference it directly:
document.forms["foo"]
To disable a select object named "bar" in a form name "foo",
the
following will accomplish the task:
document.forms["foo"].elements["bar"].disabled=true;
//or as a shortcut:
document.foo.bar.disabled=true;
The "document" is a reference to your current document, not
the title.
This assumes a non-framed environment.
Mick
>
> i.e. CategoryListing.asp.forms[0].GroupDD.disabled=TRUE;
>
> but dreamweaver doesn't like it. it throws an error
message.
> I assume that form[0] should be replaced by the form
name of the form that
> contains the drop down.
>
> How is the syntax mean't to be?
>
> Thanks in Advance
>
> Fifo
>