Javascript Ajax jQuery Html PHP Example Quiz New MORE

How to remove only the parent element in HTML using jQuery


<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("#hide").click(function(){
    $('#remove-just-this').contents().unwrap();
  });
 
});
</script>
</head>
<body>
<div id="remove-just-this">
<p>If you click on the "Hide" button, I will disappear.</p>
</div>

<button id="hide">Remove</button>

</body>
</html>