<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script> <script> $(document).ready(function(){ $("p").click(function(){ alert("Thankyou workingcode.in"); }); }); </script> </head> <body> <p>Click here.</p> </body> </html>
jQuery click() Method
Working Code Asked question September 21, 2023