In HTML you can use <input type="number">
which can be float or int, depending on the "step" parameter.
If I read this value via JavaScript I get always a string.
Is there already a handy method which does this iffing and elseing to extract the matching javascript data type?
This question is not about submitting the form via http GET/POST. It is about reading the input elements via JS.