JSFiddle - React, Tailwind, and code Playground

by nabil_kadimi

HTML

<body>
    <input type="text" value="me" id="inputUsername" name="inputUsername" /><br />
    <input type="password" value="1c2z3ç4" id="inputPassword" name="inputPassword" /><br />
    <button type="button" style="width:148px" class="btn btn-primary btn-lg" id="logInButton" onclick="logInClicked();">Log In</button>
</body>

JavaScript

function logInClicked() {
    var username = document.getElementById("inputUsername").value;
    var password = document.getElementById("inputPassword").value;
    alert(username + ":" + password);
}