This is a discussion on "multiple form field calculation" within the JavaScript Forum section. This forum, and the thread "multiple form field calculation are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
multiple form field calculation
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
multiple form field calculation
Hi guys,
I'm still very new to the world of javascript and I am trying to make a script that will calculate up to 10 form fields in 1 loop. can anyone point me to a tutorial on adding multiple form fields or can provide me with a little snippet it would be greatly appreciated. thanks |
|
|
|
#2
|
||||
|
||||
|
Re: multiple form field calculation
To get 10 form fields a simply way of doing it is giving your form a unique id -- let's say id="theform"
You would then do this
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#3
|
||||
|
||||
|
Re: multiple form field calculation
i wouldn't rely on javascript..... i would go the server-side route and have PHP (or ASP or somethin) generate it.
Never use javascript if you don't have to.
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Form with confirm password field | dhossai | JavaScript Forum | 28 | Dec 16th, 2007 05:12 |
| Working with Form 'file field' data in ASP. | daryl | Classic ASP | 3 | Jun 24th, 2006 20:22 |
| Number validation in form field | Matc | JavaScript Forum | 2 | May 26th, 2006 15:05 |
| Newbie: changing the value of a field on form | d9085 | Databases | 1 | Dec 12th, 2005 18:08 |
| Add a form field | csa | Web Page Design | 8 | Nov 23rd, 2005 20:33 |