You are using the wrong quotation marks, and also trying to click on an empty tag (so there really is nothing) ...;)
Here is the JsFiddle that works: http://jsfiddle.net/uazw6/11/
<div id="top-bg" class="bg"></div>
<div id="top" class="bg">
<div id="triangolo"><a href="#" class="bottone">test</a>
</div>
</div>
Javascript:
$(document).ready(function(){
$(".bottone").click(function(){
$("#top-bg").slideToggle("slow");
$(this).toggleClass("active");
});
});
source
share