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

Vj

----- Original Message -----
From: "Zulekha Banu" <[EMAIL PROTECTED]>
To: <[EMAIL 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 [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
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 [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST 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

Reply via email to