Javascript Problem - Please Help

C

Chad

Thanks in advance for your help. I am trying to access a Hidden Field
in Javascript.

The hidden field code is

<input type="hidden" name="delCode" value="<%=rs1("Perk_ID")%>"

It's getting populated, because if I change "hidden" to "text" it
shows the value of the field.

However, when I try to access the field in Javascript it shows up as
undefined.

In debugging, I made it as simple as possible:

function go_there()
{
alert(document.form1.delCode.value);
}

and the alert box shows undefined

(The form name IS form1)

Any ideas?

Thanks.
 
S

Shannon

On 1 Oct 2003 15:36:39 -0700, (e-mail address removed) (Chad) wrote:


try document.forms.form1.delCode.value

=)

Shannon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top