snapsvg

2013-04-29

Monsieur, with these simple one-job jQuery plugins you are really spoiling us.

Today's new jQuery plugin is the check-all plugin: https://github.com/propcom/jquery-checkall

It has a couple of bugs at the time of writing, but I'll probably have those fixed this week.

Usage is quite simple (obviously); you target the 'All' checkbox and tell the plugin how to recognise all the others:

    $('#check-all').checkAll({
        rel: '.normal-checkbox'
    });

As with all of my plugins, if the selector selects multiple things, it loops over them so each one gets its own context.

No comments:

Post a Comment