Re: Problem with form.elements.lenght
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Problem with form.elements.lenght

From: Pudlik, Szymon <spudlik@CUTTHISdesy.de>
Date: Thu Aug 04 2005 - 10:25:56 CEST

Thanks for all answers.

I do this like that:

function onSubmit(form){
     var el = form.elements;
     for (var i = 0; i < el.length; i++){
         if('select-one' == el[i].type){
             el[i].disabled = false;
         }
     }

}

and it works :)

Thanks.
Szymon Pudlik.
Received on Mon Oct 24 02:13:48 2005