Skip to content
A tiny jQuery plugin to show flash messages in an unobtrusive way.
JavaScript
Find file
Latest commit c5a8f2a @joelmoss Update readme
Failed to load latest commit information.
README.md Update readme
close.png Initial import
jquery.flash.css Initial import
jquery.flash.js Initial import

README.md

jQuery Flash plugin v1.0

A tiny jQuery plugin to show flash messages in an unobtrusive way.

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

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

Something went wrong with that request. Please try again.