Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.aspnet.webcontrols
Dynamically changing html properties input tag onclick
Atrax _
1/22/2003 11:23:00 PM
I'm creating an input tag with the property set to 'readonly=true'. On a
vbscript 'onclick' I'd like to call a function to change this property
to be 'readonly=false' so someone can edit a record for example. I
labeled the input tag with an ID but have had no luck getting access to
modify it's readonly property. Can anyone point me in the right
direction PLEASE. Thanks in Advance!
WJ
*** Sent via Developersdex
http://www.develop...
***
Don't just participate in USENET...get rewarded for it!
1 Answer
saucer
1/22/2003 11:32:00 PM
0
<form runat="server" id="form1">
<asp:TextBox id="txt1" runat="server" ReadOnly="true" />
<input type="button" value="change readonly"
onclick="vbscript:document.form1.txt1.readonly=false">
</form>
"W J" <anonymous@devdex.com> wrote in message
news:#V0KjTmwCHA.2472@TK2MSFTNGP12...
>
> I'm creating an input tag with the property set to 'readonly=true'. On a
> vbscript 'onclick' I'd like to call a function to change this property
> to be 'readonly=false' so someone can edit a record for example. I
> labeled the input tag with an ID but have had no luck getting access to
> modify it's readonly property. Can anyone point me in the right
> direction PLEASE. Thanks in Advance!
>
> WJ
>
>
> *** Sent via Developersdex
http://www.develop...
***
> Don't just participate in USENET...get rewarded for it!
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Dynamically changing html properties input tag onclick
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password