Hi What's the best method to mask an input field to only allow float/double, without any jquery plugin.
Acutally i'm doing it like this:
$("#defaultvalue").bind("keypress", function(e) {
if (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57)) {
return false;
}
});
but thats only for numbers thx