you can only enter numbers
function NumberOnly(e, pnumber){
if (!/^\d+$/.test(pnumber)){
$(e).val(/^\d+/.exec($(e).val()));
}
}
has been writing this for a long time: I can only enter numbers
I use this function
with onkeyup, but now I want other judgments, but I am dead in my mind, and it is really difficult to understand the regular table!?.
if you want to save me from a god who understands the rules and regulations, you can attach a better principle! I want to go to school!
- cannot enter blank
- can only type in lowercase English and
-
- can only enter lowercase English and numbers