I have a form, and when it does the unobtrusive validtaion I want it to show:
This message: "Please enter a value."
Instead of this message: "This Field is required."
I tried adding this at the end of my jquery.validate.unobtrusive.js file
(function ($) {
$.extend($.validator.messages, {
required: "Please enter a value."
});
}(jQuery));
But it's just not working.
I also trying modifying directly the "messages" variable in jquery.validate.js file but it is not working either.
Could you please tell me how can I get this done?