JSFiddle - React, Tailwind, and code Playground

by chridam

HTML

<!DOCTYPE html>
<html>
<head>
    <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript">
  function copyTextValue(bf) {
                if(bf.checked)
                var text1 = document.getElementById("Name1").value;
                else
                text1='';
                document.getElementById("Name2").value = text1;
                document.getElementById("Name3").value=text1;
                
                }
        </script>
</head>
<body>
  
    
       <input type="checkbox" name="check1" onchange="copyTextValue(this);"/>
<input id="Name1"><input id="Name2"><input id="Name3">


</body>
</html>