0
<form>
    <input type="text" required     x-moz-errormessage="Fill this out." />
    <input type="submit" value="Submit" />
</form>

this will display "Fill this out." in Firefox when text input box is not filled. But in Google Chrome it shows "Please fill out this field", which is the default error message for required field. What is the alternate syntax for
x-moz-errormessage in Chrome

By the way I want to do it without JavaScript, it should defined in the input tag only as an attribute.

0 Answers0