By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,148 Members | 739 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,148 IT Pros & Developers. It's quick & easy.

how to enable textfild in html at runtime using javascript?

P: n/a
Hi friends,

I have disabled the textfild by using "disabled" attribute
& now i want to enable it on some button click. Can any budy please
tell me how should I do this using java script.

thank you,

Prashant.

Mar 28 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Pasha said on 28/03/2006 3:00 PM AEST:
Hi friends,

I have disabled the textfild by using "disabled" attribute
& now i want to enable it on some button click. Can any budy please
tell me how should I do this using java script.


Set its disabled property to false:

textFieldRef.disabled = false;
e.g.

<form action="">
<input name="textOne" disabled>
<input type="button" value="Enable textOne"
onclick="this.form.textOne.disabled = false;">
</form>
--
Rob
Mar 28 '06 #2

P: n/a

Hi Boss,

Thank you very much for the solution.

Have a nice time................

Prashant

Mar 28 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.