flash-message
v2.0.1
Published
A tiny plug-in to show flash messages at the top of the page that auto-hide.
Downloads
116
Readme
Flash Message Plugin
A tiny jQuery plugin to show flash messages
This is a modified version of jquery-flash, originally created by Joel Moss.
Usage
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();
Installation
npm install flash-message