Click to See Complete Forum and Search --> : calculations with form


illusime
10-11-2003, 08:51 AM
I have a form that they can enter a number. When they click the caluclate button, it will generate a number 3 times the number they entered.

A javascript alert will pop up showing the new value.

how do i code that?

Charles
10-11-2003, 12:02 PM
<input type="text" onchange="alert(3 * this.value)">