<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Modify Element Style with jQuery</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<style>
.my-element {
width: 200px;
height: 200px;
background-color: #e0e0e0;
text-align: center;
line-height: 200px;
}
</style>
</head>
<body>
<div class="my-element">
Original Style
</div>
<script>
$(document).ready(function(){
$('.my-element').css({
'background-color': '#ff0000',
'color': '#ffffff',
'font-size': '24px'
});
});
</script>
</body>
</html>