Team:ETH Zurich/labblog/buttons

From 2014.igem.org

Revision as of 09:29, 26 August 2014 by Clormeau (Talk | contribs)

$("button").click(function() { var show = $(this).attr('class'); $("article").each(function(){ $(this).show(); var test = $(this).attr('class'); if (test.indexOf(show) < 0) $(this).hide(); }); });