Thursday 30 October 2014

How not to validate HTML5 text box with required attribute

Here I am explain,How not to validate HTML5 text box with required attribute


<form>
    <input type="text" name="firstname" required />
    <input type="number" min="1" max="100" required />
    <input type="submit">Add</input>
    <input type="submit" formnovalidate>Cancel</input>

</form>

No comments:

Post a Comment