Suppose you have a login form and you want to send the form when user press enter on his keyboard and not only by clicking on the submit button. This can be achieved capturing a specific event when the user is typing. We have to capture the keypress event and listen to trigger an action […]
This class can solve many problems coming from user generated html content or to fix html content before making some hard work with your bots! (It’s specially usefull for web sites without the Html Tidy module of PHP). Hre is a quick list of the magic things it can do. delete closed tags without their […]
When you have an html form and you want only alphanumerical [a-z0-9] chars in your input, you can use this small piece of code in the onkeyup attribute. It will strip non alphanumerical characters while they are typed in a input text box.