Skip to content

Instantly share code, notes, and snippets.

@nmeans
Created March 11, 2011 15:54
Show Gist options
  • Save nmeans/866064 to your computer and use it in GitHub Desktop.
Save nmeans/866064 to your computer and use it in GitHub Desktop.
$('a.showhide-trigger').click(function(){
$('div.showhide').toggle('slow');
if ($('a.showhide-trigger').text() == 'Show all archived issues'){
$('a.showhide-trigger').text('Hide archived issues');
} else {
$('a.showhide-trigger').text('Show all archived issues');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment