How to Prevent Special Non Alphanumeric Chars in an Input with jQuery


So the trick we are going to see today it’s an input where we avoid the insertion of special chars, such as esclamation marks (!), percentage (%), allowing only lettes and numbers. The script allow the use of the arrows, backspace and delete button, preventing anything else.

Leggi Articolo

How to detect correctly the event handler using jQuery


The event handler on touch and desktop devices Basically the iPad, or in general touch based devices haven’t any “click” event. Instead we have a “touch” event. How can we handle them correclty? So the solution is simple and elegant: once detected the device we assign the correct event handler to a variable and then we can use it, without be worried about the device is […]

Leggi Articolo