I want to make a login with javascript/jquery for validation and then when i click on button then it checks for these values in database, but i only ask for help with javascript/jquery.
I would like to do so when you start typing in textboxes/input "username" or "password" then one of these images: "wrong" "correct"
image "wrong" should be shown when you enter the textbox. and you have to write at least 6 characters in username and password, so i should be shown untill you have written more than 6 characters.
image "correct" should be shown when you have written more than 6 characters and in username only 0-9 Aa
Code:
<table>
<tr>
<td>
<asp:Label ID="LabelUsername" runat="server" Text="Username:"></asp:Label>
</td>
<td>
<input type="text" id="TextBoxUsername" runat="server" placeholder="Username" oncopy="return false" onpaste="return false" oncut="return false" class="Text" />
</td>
<td>
<img src="images/Forkert.png" id="wronguser" style="width:45%;height:40%;visibility:hidden"/>
</td>
<td>
<img src="images/Rigtigt.png" id="correctuser" style="width:45%;height:40%;visibility:hidden" />
</td>
</tr>
<tr>
<td>
<asp:Label ID="LabelPassword" runat="server" Text="Password:"></asp:Label>
</td>
<td>
<input type="text" id="TextBoxPassword" runat="server" placeholder="Password" oncopy="return false" onpaste="return false" oncut="return false" class="Text" />
</td>
<td>
<img src="images/Forkert.png" id="wrongpass" style="width:45%;height:40%;visibility:hidden"/>
</td>
<td>
<img src="images/Rigtigt.png" id="correctpass" style="width:45%;height:40%;visibility:hidden" />
</td>
</tr>
<tr>
<td></td>
<td>
<input id="ButtonLogin" runat="server" type="submit" value="Login" name="Login-button" />
<input id="ButtonCancel" runat="server" type="submit" value="Cancel" name="Cancel-button" class="cancel" />
</td>
</tr>
</table>
EDIT:
I know it register/signup, but the point is there, that this box popping up if the requirements isn't made. [https://signup.leagueoflegends.com/en/signup/index][1]