TutorialKart
index.html
►
Run
Reset
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("#colorBox").mouseenter(function(){ $( this ).css("background-color","#484"); $( this ).text("You entered mouse into the area that I span.").css("color","white"); }); }); </script> </head> <body> <div id="colorBox" style="width:300px;height:200px;background-color:#CCC;padding:10px;"></div> </body> </html>