![]() Preserved Topic: calling arrays in form elements (Page 1 of 1) |
|
---|---|
Obsessive-Compulsive (I) Inmate From: Osterburken, Germany |
![]() what I've got is a JavaScript part in the body of a document where I define form elements, like this: code: <form name="myform">
code: <script language="JavaScript">
|
Paranoid (IV) Inmate From: Lebanon |
![]() it surely won't work like that! |
Paranoid (IV) Inmate From: Lebanon |
![]() Oh yes, btw... |
Paranoid (IV) Inmate From: your subconscious. (scared yet?) |
![]() threep decides to give his head another itch, and asks: code: for(i=1;i<document.myform.elements.length;i++)
|
Obsessive-Compulsive (I) Inmate From: Osterburken, Germany |
![]() thanks to both of you, it works now (who would have doubted ;-) ) |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() Along the same lines. You pretty much need to name your elements however sometimes this can be problematic using brackets since some languages (PHP) already uses this construction it may conflict with the server side code. |