Input Minlength And Maxlength Html Code Example


Example 1: Validate length with html


<--html forms min. charcter-->
<input pattern=".{3,}" required title="3 characters minimum">
<input pattern=".{5,10}" required title="5 to 10 characters">

Example 2: min length input html


<form action="/action_page.php">
<label for="password">Password:</label>
<input type="password" id="password" name="password" minlength="8"><br><br>
<input type="submit" value="Submit">
</form>

Comments

Popular posts from this blog

530 Valid Hostname Is Expected When Setting Up IIS 10 For Multiple Sites

C Perror Example

Converting A String To Int In Groovy