Editor Arrow Download Open
<!DOCTYPE html> <html> <head> <title>jQuery mouseout() and mouseover() method</title> <script src="jquery-latest.min.js"></script> <script> $(document).ready(function(){ $("div").mouseover(function(){ $("input").css("background-color", "yellow"); }); $("div").mouseout(function(){ $("input").css("background-color", "pink"); }); $("#btn1").click(function(){ $("div").mouseover(); }); $("#btn2").click(function(){ $("div").mouseout(); }); }); </script> </head> <body> <button id="btn1">Trigger MouseOver</button> <button id="btn2">Trigger MouseOut</button> <br /><br /> <div style="padding: 10px; border: 1px solid #000;"> Name: <input type="text" name="name" /> </div> </body> </html>
  Preview Arrow