Is there an easy way to allow users to enter only integers positive and negative. I can do it with few lines of JavaScript or jQuery but hope there is an easy way like regex. But I could not found what I need. I need to be able to enter these characters: -0123456789
<input id="myID" type="number">
I don't need dot/coma/exp char. Only -0123456789, i.e. positive and negative integers