Removing an error message from the page with a fade effect

We are all experienced with showing an error, but what happens to that error once the user has read it and begun to move on with their life? Fade out the error, or any block of text using opacity to help users have a better understanding of what the application is asking them to do.

Getting ready

Prepare to use this recipe in an application by listing out the form validation elements. Knowing which collection of elements must be integer, or string, and so on, will help us to write form validation that is more reusable, since we can reuse code that is written upon groups of elements more easily than we can use individual element's form validation. Once we are ready to do that, we will be ...

Get MooTools 1.3 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.