SHARE
TWEET

Markup Zepto

a guest Mar 22nd, 2013 120 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <ul class="app">
  2.         <li class="icon icon-safari">
  3.                 Safari browser
  4.                 <button class="close">&times;</button>
  5.         </li>
  6. </ul>
  7.  
  8. <script>
  9.         $('.close').hide();
  10.  
  11.         $('.icon').on('click', function(e){
  12.                 $(this).closest('li').children('.close').show();
  13.                 $(this).closest('li').children('.close').on('click', function(e){
  14.                         $(this).closest('li').remove();
  15.                 });
  16.         });
  17. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top