Posts Tagged ‘block chars’

SleepyCod
by SleepyCod

Restrict field input with Javascript and Swell

Posted in Javascript, Swell

Today, we are delivering the first page to play around with Swell and we are quite happy of the result. We wanted to show how easy it is to restrict the characters typed in form fields.

By using the universal selector (*) built-in Swell’s Event library, you can catch any keystroke and of course retrieve its text representation  in your event handler !

Be careful the code behind the Event library is still in early Alpha stage and far from being production ready, have fun !

Restrict input chars playground page