JSFiddle - React, Tailwind, and code Playground
by Karan1412
HTML
<body>
<p>This is first paragraph element.</p>
<p>This is Second paragraph element.</p>
<p>This is Thire paragraph element.</p>
<p>This is fourth paragraph element.</p>
<p>This is five paragraph element.</p>
<button id="myButton">Click Me</button>
<button onclick="location.reload()">Reset</button>
</body>
JavaScript
$(document).ready(function()
{
$("#myButton").click(function()
{
$("p:odd").css({'font-size':'20px','background-color':'Orange'});
});
});