Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable a text box

Status
Not open for further replies.

NiteCrawlr

Programmer
Mar 16, 2001
140
BR
Hi,

I have a form which contains some text boxes and a check box. What I want to do is, when I click on the checkbox, I want one of the text box to be disabled (like, just one of the text box I'm not able to write).

Thank you
 
call a function on the onclick of the checkbox.

function checkbox_onclick()
{
document.formname.elementname.onfocus = function(){this.blur()}
} luciddream@subdimension.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top