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