JavaScript jQuery.reclick Plugin

The jQuery.reclick plugin provides two actions:

  1. jQuery(elements).storeclick(aCookieName) – this binds a handler to the click event. When the element is clicked, its ID is stored in a cookie `aCookieName `
  2. jQuery.reclick(aCookieName) – if this is called, the element of the stored ID is clicked.

This may be useful e.g. to keep selected tabs or other clickable settings between pages.

Note: jquery.cookie.js plugin is required!

See plugin source code or the example and its source code for more details.

Download: version 1.0 (02/01/2009)

Published on Únor 2, 2009 by pixy • Category: JavaScript

No Comments to “jQuery.reclick Plugin”

Something serious to tell?

required; won't be displayed

Texy! formatting supported. Please keep the comments to the point, short and decent. Thank you.