JSFiddle - React, Tailwind, and code Playground

by nikita_turing

HTML

<button id='but_1' onclick="javascript:invert();">Invert</button>

JavaScript

function invert(){
    
    document.getElementById('html')
    alert( div.innerHTML )
}