Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JSP Interest »

Re: Problem in disabling text boxes

K R Viju

2004-05-11

Replies:

Yrname="Yr"+document.formname.test[i].value;
eval("document.frm."+Yrname+".readOnly=true;");
this will work.

Vj

----- Original Message -----
From: "Zulekha Banu" <zulekha.flexwala@(protected)>
To: <JSP-INTEREST@(protected)>
Sent: Tuesday, May 11, 2004 2:55 PM
Subject: Problem in disabling text boxes


> Thanks for Your help regrding problem in frame.
>
> I have one more query..
> I have text boxes for filling year.
> name of these text boxes is "Yr"+document.formname.test[i].value where i
> ranges frm say 0-100
>
> My problem is as to how i can access name of each of these textboxes?
>
> I tried doing
>
> Yrname="Yr"+document.formname.test[i].value;
> document.frm.Yrname.ReadOnly=true;
>
> but it did not work..
> Is there any way to capture the names of these text boxes so that i can
> make them readonly???
>
> Thanks in advance
> Regards,
> Zulekha
>
>
===========================================================================
> To unsubscribe: mailto listserv@(protected)
JSP-INTEREST".
> For digest: mailto listserv@(protected)
DIGEST".
>
> Some relevant archives, FAQs and Forums on JSPs can be found at:
>
> http://java.sun.com/products/jsp
> http://archives.java.sun.com/jsp-interest.html
> http://forums.java.sun.com
> http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto listserv@(protected)".
For digest: mailto listserv@(protected)".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com
©2008 junlu.com - Jax Systems, LLC, U.S.A.