Category: javascript


jQuery method to force numeric input on element with cmd and ctrl actions to allow select all and page refresh

This is just a simple jQuery method to force numeric input on an <input> element. It allows backspace, tab, delete, arrow keys, numbers, numpad numbers, home, end, period, and CMD or CTRL key combinations for select all, copy, paste, etc. It took awhile to figure out all of these character code exceptions and combine them… Read more »