blog about graphic design, web design and marketing

The D. Drew Design Blog

Articles from february, 2010

9
feb 10

Snazzy jQuery Form Alert Boxes

For a recent client, I wanted to write a script that would alert a user to not leave a field blank. Using jQuery, I wrote a script that animates a small alert box into a position relative to the input box in question. If the user "focuses" on the particular input box, then "blurs" (clicks off of it, or clicks elsewhere) without inputting anything, the alert box will insert itself into the DOM directly above the particular <input> in question alert them that they left it empty. see the article