How to disable text field

Results 1 to 2 of 2

Thread: How to disable text field

  1. #1
    Join Date
    Dec 1969

    Default How to disable text field

    Hi Guys,<BR><BR>I am new in web development. Please help me.<BR><BR>I have one check box and one text field. I want, if user check the checkbox it enable the text field so user can enter some value in it. If checkbox is not checked this text field remain disable. I wrote following javascript function and calling this function on onclick=CalTax(). But it didn&#039;t work. Could you please help me.<BR><BR>Regards<BR><BR>function CalTax(){<BR>if (document.frmEdit.chbcaltax.checked = true){<BR> document.frmEdit.txttaxno.disabled = true;<BR> }<BR>}<BR>

  2. #2
    Join Date
    Dec 1969

    Default == not = for comparisons in JS <eom>


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts