L1fescape/wordpress-showhide — pull request #3 by heatherita (2013-12-18 19:49:51+00:00)
Title: Update better-wp-showhide-elements.js

Hi Andrew,

Here is a description of my changes:

I have just extended the "better-wordpress-showhide" plugin a bit. Now you can add a "show all elements" link and use it to show/hide a bunch of elements at once.

You can see it in use at http://www.lamphp.net/heather-propes/ ("show jobs" link).

You just need to create a link that refers to an element that would be the root of all the elements you want to show or hide, i.e. for elements

myJobId1
myJobId2
myJobId3

you would control them with this link:

["show all", "hide all", "visible"]

You can still control the divs individually by refering to their exact names. HOWEVER if you are going to control a bunch of divs at once, then you shouldn't also try to control them individually, as the labels get confused.