JSFiddle - React, Tailwind, and code Playground

by techiedelight

HTML

<div id="cc">
  <p>Content</p>
</div>

JavaScript

$(document).ready(function() {
  var outerHTML = $("#cc").prop("outerHTML");
  console.log(outerHTML);
});