This is a simple jquery code used display the alert message. Here the alert event occurs when tag
is clicked. The click alert jquery code is given below.
<script type="text/javascript">
$(document).ready(function() {
$("div").click(function() {
alert("Welcome to the Hscripts.com..!");
});
});
</script>
<div id="demo">
Click here to open Alert Box.
</div>