Expanding (folding) category lists

Posted on Thursday 11th January 2007 under Reference by admin

I really must get around to implementing these plug-ins to stop clutter in the WordPress category and page lists.

See also here.

Consider the following JavaScript:
// Toggle Show/Hide

function toggle(name) {

if (document.getElementById(name).style.display == "block") {

document.getElementById(name).style.display = "none";

} else {

document.getElementById(name).style.display = "block";

}

}

Leave a Reply

You must be logged in to post a comment.