I downloaded the script from emposha.com/javascript/fcbklistselection-like-facebook-friends-selector.html and made a few modifications, as the source wasn’t working as required (When submitting the form, all of the values were being sent to the php handler, not just the checked ones).
My working example is in this Demo.
My issue is this: how can I check a group of <lis> so that I could have a ‘Select All’ button?
You can do it like this:
Or if you want a toggle on that select all box that checks when it’s checked, unchecks all when it’s not, do this:
To get the effect you want with the plugin though, you’ll need to fire a
clickon the parent as well, like this:You can try a working sample here.