O'Reilly logo

MooTools 1.3 Cookbook by Jay Larry G. Johnston

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required