Answers for "jQuery remove HTML tags"

2

jquery remove element

$( ".class" ).remove();
$( "#id" ).remove();
$( "div" ).remove();
Posted by: Guest on September-17-2020
3

how to remove html element in jquery

$("button").click(function(){
  $("p").remove();
});
Posted by: Guest on November-24-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 "Javascript"

Browse Popular Code Answers by Language