Call JQuery Method to Achieve HTML Effect
Let's look at the following example:
<p>This is a paragraph with little content.</p>
<p>This is another small paragraph.</p>
In the above example, when a user clicks the button, a JQuery event "click" is fired. This will invoke your custom code inside the $("button").click JQuery event. And the custom code just hides the text enclosed by the <p> tag.