$(document).ready(function() { $("p").hover(function() { $(this).css("color", "green"); }); });