JSFiddle - React, Tailwind, and code Playground

by Radhika Magaji

HTML

<div id='demo'>
Name:<input id='name' type='text' value='' onblur="hello()"/>
Output:

</div>

JavaScript

function hello(){
alert('hello');
var x=document.getElementById('name').value;

}