Advertisement
Guest User

Untitled

a guest
Dec 4th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. $(".block").removeClass("not-allowed");
  2. $(".list").removeClass("no-click");
  3.  
  4. $('.list').on('click', function() {
  5. $(this).addClass('no-click');
  6. });
  7.  
  8. $('.block').on('click', function() {
  9. $(this).addClass('not-allowed');
  10. });
  11.  
  12. $(document).on("click", '.removebtn', function(e) {
  13. var tgt = $(e.target);
  14. var idx = tgt.index();
  15. $('.block').eq(idx).removeClass('not-allowed').find('.list').removeClass('no-click');
  16. tgt.closest('.row').remove();
  17. });
  18.  
  19. $(document).on.....
  20.  
  21. $(document).delegate('.class_off_button', 'click', function (){
  22. //what you want to do
  23. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement