Commit 63e8e8b6 by zekena

Merge branch 'master' of gitlab.pld.ttu.ee:zekena/Unit-calculator

parents a81b6ac3 d102e3f3
Showing with 17 additions and 3 deletions
......@@ -14,10 +14,25 @@ function checkForm(){
var from_value = document.getElementById("from_value").value;
var to_value = document.getElementById("to_value").value;
//
if (isNaN(num1)){
if (isNaN(from_value)){
document.w
}
document.getElementById("myForm").submit();
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment