Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

jQuery plugin to put those cool little Google Gmail type 'Select All/Select None' action menus at the top of a list of check boxes.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 css
Octocat-spinner-32 img
Octocat-spinner-32 js
Octocat-spinner-32 .gitignore
Octocat-spinner-32 HISTORY.md
Octocat-spinner-32 README.md
Octocat-spinner-32 index.html
Octocat-spinner-32 postback.php
README.md

jQuery Plugin: Multi Row Checkbox Menu

By Tom Holder - http://www.simpleweb.co.uk

Overview

This is an unobtrusive jQuery plugin to put those cool little Google Gmail type 'Select All/Select None' action menus at the top of a list of check boxes.

Usage

First include the jquery.multirowcheckboxmenu.js file in your page.

<script src="/path/to/jquery.js" type="text/javascript"></script>
<script src="/path/to/jquery.multirowcheckboxmenu.js" type="text/javascript"></script>

Markup your menus as follows:

<div class="multiRowCheckboxMenu">
    <input type="submit" name="Delete" value="Delete" />
    <input type="submit" name="Merge" value="Merge" />
</div>

You will notice the markup just contains form submit buttons. This is so the functionality degrades without javascript. If Javascript is enabled, each submit input will be replaced with an element in the menu drop down. The form will be submitted with the same named action value.

Then apply the multirowcheckbox plugin to the container:

$('div.multiRowCheckboxMenu').checkboxMenu();

If you ID or class the submit buttons inside the container, those IDs/classes will get passed over to the LIs to provide more styling control.

The plugin can also be used as a simple filter menu without the checkbox for things such as Sort Alphabetically, Filter by Letter etc. To do this, you must just have a input item with a class of selected. See index.html for example.

Background

Blog post on ok-cool.com

This plugin was built for our fabulous ContactZilla product! http://contactzilla.com/

Example

License

This plugin is licensed under both the GPL and MIT licenses. Choose which ever one suits your project best.

ContactZilla.com

Something went wrong with that request. Please try again.