<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("p").click(function(){
$(this).hide();
});
});
When the DOM object is ready to run this function, you can write all this jQuery.
jQuery was popular because it was finally easty to make interactive websites.
However, as time progressed, people found new and better ways to do things.