to validate hidden fields, update the ignore selector which defaults to ":hidden".
$('#myForm').validate().settings.ignore = ".ignore"; // require ignore class to ignore
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a hidden value
<input type="hidden" asp-for="ImageUrl" />
<span asp-validator-for="ImageUrl" />
how to validate it?
jquery.validate will not validate the hidden doms.
to validate hidden fields, update the ignore selector which defaults to ":hidden".
$('#myForm').validate().settings.ignore = ".ignore"; // require ignore class to ignore