JSFiddle - React, Tailwind, and code Playground
by Karan1412
HTML
<html>
<head>
<title>CSS Multiple</title>
</head>
<body>
<div id="myDiv">
Click ME
</div><br />
<input type="button" id="reset" value="Reset" onclick="location.reload()" />
</body>
</html>
CSS
#myDiv
{
background-color:Green;
width:200px;
height:200px;
color:White;
}
JavaScript
$(document).ready(function () {
$("#myDiv").click(function () {
$(this).css({ 'background-color': 'red', 'margin-left': '400px' });
});
});