次の jQuery コードの何が問題になっていますか?
<script type="text/javascript">
$("#contact_min").click(function(){
$("#contact_min").toggle(function(){
$("#contact_min").animate({
height: "300px"
}, 1500 );
$(".arrow").html("▼")}
function(){
$("#contact_min").animate({height: "28px"}, 1500 );
$(".arrow").html("▲")
})});
</script>
contact_min div をクリックしても何も起こりません。
HTML:
<div id="contact_min">
<span class="arrow">▲</span>
<span class="text">foobar</span>
</div>