JSFiddle - React, Tailwind, and code Playground

by Christopher

HTML

<form>
<input type="button" value="whatever" id="hog" />
<input type="text" id="thename" />
</form>

CSS

<style type="text/css">
#hog {color:blue;font-size:1.3em;border:0px;background-color:transparent;}
</style>

JavaScript

// JavaScript Document
var one ="hello there";
var two = getElementById("hog");
var three = getElementById("thename");

one.onclick = function() {
three.value = one;
};