JSFiddle - React, Tailwind, and code Playground
by nbatothemax
HTML
<p id="paragraph">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium?</p>
<button id="colorChanger">This Button changes the text color of the paragraph.</button>
CSS
#paragraph {
color: green;
}
JavaScript
$('#colorChanger').click(function() {
$('#paragraph').css('color','black');
});