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 Border</button>

CSS

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

button {
  margin: 10px;
}

JavaScript

document.querySelector("button").onclick = function() {
  var obj = document.getElementById("container");
  obj.style.removeProperty("border");
}