Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: disable all INPUT's except one


Message #1 by payam <torkian@c...> on Thu, 30 Jan 2003 19:26:20 +0330 (IRT)
You can loop through the form and test for each one ;

for (i=0;i<document.myForm.elements;i++)
{
         if (!document.myForm.elements[i].name=="LeaveThisOne")
         {
                 document.myForm.elements[i].readonly=true;
         }
}

At 19:26 30/01/03 +0330, you wrote:
>how could I make all of my INPUT's except one of them "read-only"?
>
>
>




  Return to Index