Answers for "jquery remove child element from parent"

1

how to remove the parent div from the child in jquery

$(this).closest('.parentClassname').remove();
Posted by: Guest on November-05-2020
-2

delete div based on select

$('#record_nav ul li').on('click', function(e){
      $('#record_nav ul li.selected').removeClass('selected');
      $(this).addClass('selected');
      $('.content').hide();
      var id = $(this).data('target');
      $(id).show();
  });
Posted by: Guest on May-24-2020

Code answers related to "jquery remove child element from parent"

Code answers related to "Javascript"

Browse Popular Code Answers by Language