<!DOCTYPE html>
<html>
<head>
<title>jQuery hide p.div1 elements</title>
<script src="jquery-latest.min.js"></script>
<script>
$(document).ready(function() {
$("button").click(function(){
$(".div1").hide();
});
});
</script>
</head>
<body>
<p class="div1">First paragraph start here...</p>
<p class="div1">Second paragraph start here...</p>
<button>Click here to hide above all paragraph</button>
</body>
</html>