Answers for "validation using html"

3

javascript login validation

<html>
<body>
<form id="form1" runat="server">
    <div class="container">
        <div class="main">
            <h2>
                Javascript Login Form Validation</h2>
            <form id="form_id" method="post" name="myform">
            <label>
                User Name :</label>
            <input type="text" name="username" id="username" />
            <br><br>
            <label>
                Password :</label>
            <input type="password" name="password" id="password" />
            <input type="button" value="Login" id="submit" onclick="validate();" />
            </form>
        </div>
    </div>
    </form>
</html>
</body>
Posted by: Guest on March-19-2020
2

name validation html

<input type="text" pattern="[a-zA-Z'-'\s]*">
Posted by: Guest on September-18-2020

Code answers related to "validation using html"

Browse Popular Code Answers by Language