Team:ETH Zurich/labblog/buttons
From 2014.igem.org
(Difference between revisions)
Line 6: | Line 6: | ||
$("button").on("click", function(){ | $("button").on("click", function(){ | ||
var filtertag = $(this).attr('class'); | var filtertag = $(this).attr('class'); | ||
- | $( | + | $("article").hide().filter('.' + filtertag).show(); |
}) | }) | ||
[0].click(); | [0].click(); |
Revision as of 09:46, 26 August 2014