andyede
09-23-2004, 12:41 PM
Hi guys,
I'm looking for a way of adding up the values in some text inputs and displaying the total below them. the idea being that people using the form will only be able to put in values that add upto a pre-determined total. i can check this easily using the server side CGI which its submitted to but i want a way of showing the user what they have entered dynamically.
would this be possible to do in real time or would it have to be done on user selection ie. clicking a button. I'm not very familiar with JS so i need some help with this one.
it would also be nice to be able to check the total values entered are not over the maximum. again i can do this easily in cgi but would rather it happened before submition.
Andy
I'm looking for a way of adding up the values in some text inputs and displaying the total below them. the idea being that people using the form will only be able to put in values that add upto a pre-determined total. i can check this easily using the server side CGI which its submitted to but i want a way of showing the user what they have entered dynamically.
would this be possible to do in real time or would it have to be done on user selection ie. clicking a button. I'm not very familiar with JS so i need some help with this one.
it would also be nice to be able to check the total values entered are not over the maximum. again i can do this easily in cgi but would rather it happened before submition.
Andy