completely block chars on input of type=number

This is a better solution to block any chars except numbers and decimals