Team:ETH Zurich/labblog/buttons
From 2014.igem.org
(Difference between revisions)
Line 75: | Line 75: | ||
- | $("article"). | + | $("article").hide(); |
$("a#insidelink, area, button").on("click", function(){ | $("a#insidelink, area, button").on("click", function(){ | ||
var filtertag = $(this).attr('class'); | var filtertag = $(this).attr('class'); | ||
- | $("article" | + | $("article").filter('.' + filtertag).toggle(); |
}); | }); | ||
Revision as of 20:25, 7 October 2014