This is a migrated thread and some comments may be shown as answers.

Kendo Validator and Valid HTML

2 Answers 193 Views
Validation
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 12 Jun 2012, 08:24 AM
I'm using the validator for a web site that needs to be verifiably valid HTML. However, the validationMessage attribute causes a failure in the following:

<input type="text" id="Name" class="k-textbox" required validationmessage="Please enter your name" />

Is there a way to make this control use valid HTML?

2 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 12 Jun 2012, 08:38 AM
Hello,

You can use the data-required-msg instead of validationMessage. It seems the latter is supported by all browsers that have built-in HTML5 validation support however is not yet part of the HTML5 specification (it is available only as a readonly DOM attribute).

<input type="text" id="Name" class="k-textbox" required data-required-msg="Please enter your name" />

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Richard
Top achievements
Rank 1
answered on 12 Jun 2012, 08:49 AM
That did the trick, thanks :)
Tags
Validation
Asked by
Richard
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Richard
Top achievements
Rank 1
Share this question
or