JSFiddle - React, Tailwind, and code Playground

by siyakunde

HTML

<html>
    <head>
        <script>
        function clickedIt(buttonValue){
            document.getElementById('txt').value = buttonValue;
        }
        </script>
    </head>
    <body>
        <input type='text' id='txt' value=''/>
        <input type='button' value='Button1' onclick='clickedIt("Button1")'/>
        <input type='button' value='Button2' onclick='clickedIt("Button2")'/>
        <input type='button' value='Button3' onclick='clickedIt("Button3")'/>        
    </body>
</html>