JQuery Mouse Click
From w3cyberlearnings
Contents |
jQuery Mouse Click
This is a mouse click event for single mouse click.
Syntax
$(Selector).click(function(){ });
Example
<html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script type="text/javascript" src="jquery.min.js"> </script> <script type="text/javascript"> $(document).ready(function(){ $('button#mybtn').click(function(){ alert('click me'); }); }); </script> </head> <body> <button id="mybtn">Show</button> </body> </html>
Related Links
jQuery Mouse Click