JSFiddle - React, Tailwind, and code Playground

by Tintu Raju

HTML

<input type='button' onclick='clear_div()' value='click me'>
    <div id='txx'>Some text</div>

JavaScript

function clear_div() {
    var clear="";
    document.getElementById('txx').innerHTML = clear;
}