Hi,
I am trying to get the Validator working on a KendoUI date picker and cannot see what I am doing wrong.
I am attempting to use the following code.
When the page loads, I can type what ever text I want in the date such as "kendo", lose focus on the element and no validation occurs.
I have tested this on both JSBin and Kendo Dojo without any success
What am I missing?
Kind Regards,
Jonathan
I am trying to get the Validator working on a KendoUI date picker and cannot see what I am doing wrong.
I am attempting to use the following code.
<
div
id
=
"tickets"
>
<
label
for
=
"datepicker"
>Start Date</
label
>
<
input
type
=
"date"
id
=
"datepicker"
name
=
"searchstart"
/>
<
span
class
=
"k-invalid-msg"
data-for
=
"searchstart"
validationMessage
=
"Test"
></
span
>
</
div
>
<
script
>
$(document).ready(function() {
$("#datepicker").kendoDatePicker({
format: "dd/MM/yyyy"
});
var validator = $("#tickets").kendoValidator().data("kendoValidator");
});
</
script
>
When the page loads, I can type what ever text I want in the date such as "kendo", lose focus on the element and no validation occurs.
I have tested this on both JSBin and Kendo Dojo without any success
What am I missing?
Kind Regards,
Jonathan