Mahammad Moine

Mahammad Moine

  • NA
  • 165
  • 686

Properties problem

Apr 25 2016 1:20 AM
<body>
<form>
<input type="password" required="required" pattern="[0-9]{5}">
<input type="submit" value="submit">
</form>
</body>
</html>
Above code I am executing and clicking button without entering value. Requirement message appears,before disappearing the message entering value in textbox then message is appearing again and again ,it is behaving like key press event why? At the time of entering correct format value it should disappear and should appear validation message  at the time of submit button click but not being so why?

Answers (1)