JSFiddle - React, Tailwind, and code Playground

HTML

Please enter the number : <form id="b"><input id=a size=10/><input type = "submit"/></form>

JavaScript

$("#b").submit(function() 
{  
var a = $("#a").val();
a = "&radic;" +a ;
document.write(a);  
});