disable textareas

Results 1 to 2 of 2

Thread: disable textareas

  1. #1
    Join Date
    Dec 1969

    Default disable textareas

    Hello!<BR><BR>I am generating textareas based on the service selected.<BR><BR>What I need is for a specific condition I need to mask or disable the textarea whose name starts with &#039;Q_&#039;<BR><BR>the condition is <BR> if(sValue==&#039;S&#039;)<BR>{<BR>document.MyForm. Q_1.disabled=true<BR>document.MyForm.Q_1.style.bac kgroundColor="gray" <BR>}<BR><BR>Whatever formelement that starts with Q_ should be disabled please help me out.<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: disable textareas

    you need to loop through the elements and if their name property begins with Q_, disable them. you can&#039;t do it with a mask.

Posting Permissions

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