Change the color of any paragraph to red on mouseover event using jquery
- جي كويري
- 2021-09-18
- mhanasmh00489829403
الأجوبة
HTML Code :
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-git.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Change the color of any paragraph to red on mouseover event.</title>
</head>
<body>
<p>jQuery Exercises, Practice and Solution.</p>
<p>Ajax Tutorial</p>
</body>
</html>
CSS Code :
p {
color: blue;
font-size: 24px
}
JavaScript Code :
$( "p" ).on( "mouseover", function() {
$( this ).css( "color", "red" );
});
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال
معلومات ذات صلة