Plato
07-26-2009, 06:21 PM
Hello I wish to make a basic calculator in javascript for my fitness website.
There are three sections to the page, an input box, a submit button and a paragraph where i would like the result to come out.
I would like to take the figure inputed, and put it in this equation:
111.33 - (0.42 x Inputted Figure)
Then make it appear in the paragraph tag when the submit button is clicked.
I know very very basic javascript but I'm just trying to figure out where I should start, and how to structure it.
I would mucho appreciate any pointers :)
There are three sections to the page, an input box, a submit button and a paragraph where i would like the result to come out.
I would like to take the figure inputed, and put it in this equation:
111.33 - (0.42 x Inputted Figure)
Then make it appear in the paragraph tag when the submit button is clicked.
I know very very basic javascript but I'm just trying to figure out where I should start, and how to structure it.
I would mucho appreciate any pointers :)