Jquery / Basics / Jquery Events
Jquery Events
-
STEPS
1. Click Event
in html, create the html element
//using specific tag Click Here
OR //using classClick Here
OR //using idClick Here
in jquery, define click event function
//if html tag $("p").click(function(){ alert(1); }); OR //if class $(".btn_click").click(function(){ alert(1); }); OR //if id $("#btn_click").click(function(){ alert(1); });