
This post assumes you’ve downloaded the jquery js file and saved it in the same folder.
Code:
<html>
<head>
<script src="jquery-1.9.1.min.js">
</script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("p").hide();
});
});
</script>
</head>
<body>
<h2>HIDING A PARAGRAPH ELEMENT WITH jQUERY</h2>
<p>THIS IS PARA 1.</p>
<p>THIS IS PARA2.</p>
<button>Click me</button>
</body>
</html>
Try it and let me know!