if I add a custom validator called time, it is ignored by the validation unless I add a rule for it.
Other validators are picked up if I add an attribute to the input, e.g.
<input id="Email" name="Email" type="text" class="Email Watermark" value="@order.Email" email title="Enter your email address"/>
the email attribute works as expected, however the following doesn't work:
<input id="TimeRequired" name="TimeRequired" type="text" class="Value Watermark" value="@order.TimeRequired" time title="ASAP"/>
if I add a rule for time it works.
rules:
{
TimeRequired: "time"
},
The validators should be consistent.
Also, adding the attribute is not documented adequately, if at all.