For an HTML5/JavaScript learning experience I'd like to write a basic calculator. The first thing I need to know is what options are there in terms of input types which would support only numeric characters, and (if possible) allow the inclusion of operators such as +
and -
. The end result would be for the user to be able to input characters in the value range of 0-9
, as well as {+, -, /, *, ... }
.
Is there anything which is natively tailored to this kind of thing, or at the very least tweakable to something of that nature?