If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

can't help you too much without looking at the source code. however, a tip. give each element where user type the quantity the same name. doing so generate a node list when you read the form object and then access the element by it's name (form_object.element_name). iterate the node list by adding each value onto a variable. finally set the total field value to whatever contain the variable.

if you want to show us the code, attach it into a file. i will no go copy pasting a long code.

my mom is javascript, dad is javascripter, granpa is javascriptor, and my little sister is javasRidiculous.my nature language is javascript, then come spanish and english-- me

Hi, in the above code it says "onclick", but what if i don't want a button. I want the value to be by default, that is after entering the numbers in form fields the last field where we getting the sum value, that sum value should come by default. can someone help pleaseeee?

Instead of the button, i think you could add this to each of your input fields onChange="calculate(this.form);" or onKeyup="calculate(this.form);" ....could be wrong but it should work and the onChange might only be fore select boxes. GL