Home > front end > Questions about html.validationmessage statement in the code
Questions about html.validationmessage statement in the code
Time:03-31
See the following code on the net, and then the corresponding input does not conform to the requirements of the digital code is inpObj html.validationmessage, I tested the input string, input 25, 450 the three input return statement, is 3 different words, and then want to consult the html.validationmessage here is an attribute, why will automatically return different statements, this is the first line of the input and the set of type="number" min="100" Max="300" these attributes about you
<body>
Input number and click submit: & lt;/p>
CodePudding user response:
Is, and if different browser html.validationmessage is different also, like 25450 May be in a different browser will return different information
This don't need to study them, know that there is such a thing is done, the real validation should not use this, this will have compatibility problems