Correcting syntax

This commit is contained in:
Vansh Comar 2021-11-18 12:29:58 +05:30
parent d9b6b7c7b8
commit 92577330b6

View File

@ -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));