A tiny jQuery plugin to show flash messages in an unobtrusive way.
- Created by Joel Moss (joel@developwithstyle.com)
- https://github.com/joelmoss/jquery-flash
Simply call the following to show a flash message with the text "This is my message":
$.flash('This is my message');
If you have Firefox and Firebug installed, or some other quality browser that has a javascript command line, try running the above line of code to see the flash in action.
Or you can call it on an element, where the flash message will be populated from the contents of the element:
$('#my-element').flash();
To install, just include this javascript file and the accompanying CSS file into your HTML page. And that's it!
Oh and don't forget the 'close' image.
If you need help, found a bug, or would like to contribute, head on over to https://github.com/joelmoss/jquery-flash