I made a simple little calculator for math class. It does simple things like find volumes and areas of certain shapes, but saves me a lot of time in homework.
I uploaded it to the internet for my classmates, but I figured I would make the forms only be able to have numbers in them. I found some answers on tizag, but I don't really understand those solutions.
I'm looking for something like this:
function calculation() {
if (form.thenumbers.value = code to check if it is numeric)
{
calculations
} else {
alert("Numbers only please");
}
}
If it can't be that simple, I just appreciate a little explanation to how any other way works. Thanks.