Handle mouse over event
Description
The following code shows how to change style for mouse over event.
Example
<html>
<head>
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$(function() {<!-- w w w . j a v a 2 s . c om-->
$("#text").mouseover(function() {
$(this).css("text-decoration", "underline");
}).mouseout(function() {
$(this).css("text-decoration", "none");
});
});
</script>
</head>
<body>
<p id="text">I go no where</p>
</body>
</html>