JSFiddle - React, Tailwind, and code Playground

by Dineshkani

HTML

<div id="firstdiv" class="sample">
         Hello Jquery
</div>
<div id="seconddiv" class="sample">
         Hello Javascript
</div>

JavaScript

// Jquery

$("#firstdiv").css({"color":"red","font-size":"30px"});

//In jquery it is easy to apply multiple css styles at a single line and also we use the same CSS style.

//Javascript

var elem = document.getElementById("seconddiv");
elem.style.color = "blue";
elem.style.fontSize = "30px";

//Javascript it is little complex.