Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.md
Octocat-spinner-32 close.png
Octocat-spinner-32 jquery.flash.css
Octocat-spinner-32 jquery.flash.js
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.