JSFiddle - React, Tailwind, and code Playground

by techiedelight

HTML

<div id="container" style="border: 1px solid black; background-color: lightgray;"
    class="div-attributes"></div>
<button>Remove Style Attribute</button>

CSS

.div-attributes {
  width: 500px;
  height: 300px;
}

button {
  margin: 10px;
}

JavaScript

$(document).ready(function() {
  $("button").click(function() {
    $("#container").removeAttr("style");
  });
});