Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Adding input boxes with out name tags


Message #1 by "Garrett Steed" <gmsteed@s...> on Fri, 20 Jul 2001 16:52:15
Yes, you can use the form array to get at the individual fields of the 
form, but this is pretty risky if you add any fields before the ones you 
wish to calculate, why not simply store the number of fields you are 
parsing back and then do a loop through those fields by building the field 
names and then you can add them all up ?

At 16:52 20/07/01 +0000, you wrote:
>We are currently developing a web-based interface that needs to have the
>input boxes add the values and show that sum.  This was not difficult to
>do with the "name" tag: Example <input type="text" name="input_a">
>So I would have "input_a" + "input_b" = "ans_c" and so on...
>
>Now here is my question.  Does anyone know if it is possiable to add input
>boxes not useing the "name" tag.  The name tag needs to be changed on the
>fly so I must use some other tag to ID that input box.
>
>Thanks your time
>Garrett
>


  Return to Index