|
Calculating / Multiplying form fields (on exit)
This is probably very basic, but I don't think I'm searching the right terms to find what I need, I'm looking for an example code of how to do this.
I have 3 columns (form fields below)
PRICE | ITEMS | Total
I want a user to be able to enter in a price and the amount of items so that when they leave one of those two fields, it will autocalculate and populate the "total" field. I also want the option for them
to be able to fill out the total field alone, without having to enter "price" or "items". So basically 'total' has to be filled out either way, because I will then be doing calculations with that data.
Last edited by a4udi; 07-16-2009 at 12:18 PM..
|