Possible Duplicate:
HTML5 form required attribute. Set custom validation message?
in HTML 5 form validation
<form>
<input type="txt" required id="username"/>
</form>
this required filed will always shows the message “Please enter filed”
Is there a way to customize this message ?
Not all browsers will support this attribute, Firefox does support it, IE and chrome no.
I dont know about the other browsers.
using value=”Your value” mentioned above won’t work. i just tried it.
i guess we have to wait till HTML5 becomes stable. to find out