Preserved Topic: calling arrays in form elements |
|
---|---|
Author | Thread |
Obsessive-Compulsive (I) Inmate From: Osterburken, Germany |
posted 09-04-2001 08:51
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 |
posted 09-04-2001 08:58
it surely won't work like that! |
Paranoid (IV) Inmate From: Lebanon |
posted 09-04-2001 09:00
Oh yes, btw... |
Paranoid (IV) Inmate From: your subconscious. (scared yet?) |
posted 09-04-2001 11:40
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 |
posted 09-04-2001 13:47
thanks to both of you, it works now (who would have doubted ;-) ) |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 09-04-2001 19:16
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. |