JSFiddle - React, Tailwind, and code Playground

by krazy

HTML

<input type="text" id="userName" value="Joe Doe"><br> 
<input type="button" value="Test3" onclick="test3()"><br>

JavaScript

<script>
function test3(){ 
    alert("heklo");
    alert($F('userName')); 
}
</script>