Jquery Click Alert Example - Jquery

How to get alert message on click jquery

Snippet Code

Rate this page :
  [ 0 votes]

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>


Ask Questions

Ask Question