The element Selector in jQuery

The element Selector in 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(){
  $("button").click(function(){
    $("#p_test").hide();
  });
});
</script>
</head>
<body>
<p id="p_test">Hide paragraph.</p>

<button>Click</button>

</body>
</html>

2021-10-03