Run
Reset
Chrome
Cobalt
Monokai
Dreamweaver
Vibrant Ink
<!DOCTYPE html> <html lang="en"> <head> <title>Learning jQuery</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> </head> <body> <button>Click Me!</button> </body> </html>
/* CSS */
$(document).ready(function(){ $("button").click(function(){ alert("button clicked"); }); });