I have an additional problem with the function:
function checkInp() {
var input = document.getElementsByTagName("input");
for (var i =0; i < input.length; i++) {
if (input[i].type == "text") {
if (isNaN(input[i].value)) {
alert("Треба да внесувате бројка!");
return false;
}
}
}
}
this fucntion works finde till I have to input negative numbers and decimal numbers wich I separet them with comma (,) ex: -12.3 or -3,4 ... How can I exclude , and - to recognize them as caracters?