Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ul class="app">
- <li class="icon icon-safari">
- Safari browser
- <button class="close">×</button>
- </li>
- </ul>
- <script>
- $('.close').hide();
- $('.icon').on('click', function(e){
- $(this).closest('li').children('.close').show();
- $(this).closest('li').children('.close').on('click', function(e){
- $(this).closest('li').remove();
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement