As above, vital for my project!

I need a while look whereby a customer will enter a currency value, which must be an integer obviously. They must enter 10 currency values and the sum of these values must be printed.

Any help would be much appreciated!

Every AJAX code is JavaScript
Not every JavaScript code is AJAX

AJAX = set of functions used to interact with other pages on the same server

To answer your problem:

- Make a form with 11 text inputs and 1 button that onclick activates your function
- Write a function in javascript that retrieves the value of 10 text inputs and that displays that in the 11th

A small example on how to add two numbers:

<script type="text/javascript">
function sum() {
var number1 = 4;
var number2 = 8;
var result = number1 + number2;
alert(result);
}
</script>

~G

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.