Advertisement
Guest User

Untitled

a guest
Sep 15th, 2014
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).foundation();
  2.  
  3. $(function(){
  4.     //Button, that should be clicked
  5.     var $loveB = $('#love-button');
  6.     //div box around the icon
  7.     var $loveA = $('#love-area');
  8.     //icon itself
  9.     var $loveI = $('#love-icon');
  10.  
  11.     $loveB.click(function(){
  12.         $loveI.toggle();
  13.     });
  14. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement