Monday, December 15, 2008

Disable keys using JQuery

Disabling keys with JQuery is extremely easy, for example the next code will accept only digits for the specified elements, another set of keys will be missed!



where 48 is the decimal ascii representation for zero (0) and 57 for nine (9). Here the table.