Thread: jQuery Help with this code ...
View Single Post
Old 09-15-2012, 05:18 AM   PM User | #2
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,461
Thanks: 52
Thanked 457 Times in 455 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
I think you forgot the javascript

Code:
<script>
$(function() {
    $("#related-btn").hover(function() {
      if(!$(this).data('pinned'))
        $("#show-hide").toggle("slow");
    });
    $("#related-btn").click(function() {
      $(this).data('pinned', !$(this).data('pinned'));
    });
});
</script>
xelawho is offline   Reply With Quote