0

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 ?

0

2 Answers 2

3

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

Sign up to request clarification or add additional context in comments.

Comments

1
<input type="txt" required id="username" value="Your value" />

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.