Skip to content

Instantly share code, notes, and snippets.

@caefer
Created September 6, 2011 21:29
Show Gist options
  • Select an option

  • Save caefer/1199028 to your computer and use it in GitHub Desktop.

Select an option

Save caefer/1199028 to your computer and use it in GitHub Desktop.
function filter(attribute, value)
{
$('.thing .'+attribute+'.'+value).hide();
}
function unfilter(attribute, value)
{
$('.thing .'+attribute+'.'+value).show();
}
filter('color', 'red');
filter('shape', 'round');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment