Correcting syntax
This commit is contained in:
parent
d9b6b7c7b8
commit
92577330b6
|
@ -4,7 +4,7 @@ function Convert(n1, n2, conversion_factor) {
|
|||
id2 = "cb" + n2;
|
||||
|
||||
// getting the value of the input box that just got filled
|
||||
var input_box = document.getElementById(id1).value
|
||||
var input_box = document.getElementById(id1).value;
|
||||
|
||||
// updating the other input box after conversion
|
||||
document.getElementById(id2).value = ((input_box * conversion_factor).toFixed(2));
|
||||
|
|
Loading…
Reference in New Issue
Block a user