Editor Arrow Download Open
<!DOCTYPE html> <html> <head> <title>jQuery hover() method</title> <script src="jquery-latest.min.js"></script> <script> $(document).ready(function(){ $("div").hover(function(){ $(this).css("background-color", "pink"); }, function(){ $(this).css("background-color", "white"); }); }); </script> </head> <body> <p>Click on following text field to occur hover events.</p> <div style="padding:15px 10px;"> Name: <input type="text" name="name" /> </div> <div style="padding:15px 10px;"> E-mail: <input type="text" name="email" /> </div> <div style="padding:15px 10px;"> Phone: <input type="text" name="phone" /> </div> </body> </html>
  Preview Arrow