I created a new project using the ASP.net MVC 4 Web Application template in Visual Studio 2012 (Forms Authentication) and I want to remove unobtrusive validation from it. I made the following changes:
- Changed web.config –
add key="UnobtrusiveJavaScriptEnabled" value="false" - Changed the
BundleConfigto remove thejquery.validate.unobtrusive.jsscript - I changed
_Layoutso that the jquery/jqueryval bundles were in the<head>section.
These are the only changes I made, but I am not getting any client side validation. When inspecting the scripts in chrome, I see jquery and jquery.validate (not unobtrusive) and it is not putting the unobtrusive attributes in my markup, but client side is not working at all.
What else do I need to do/undo to get rid of unobtrusive validation?
Edit
Inspecting the markup this is also in my page:
<script type="text/javascript">
//<![CDATA[
if (!window.mvcClientValidationMetadata) { window.mvcClientValidationMetadata = []; }
window.mvcClientValidationMetadata.push({"Fields":[],"FormId":"form0","ReplaceValidationSummary":true,"ValidationSummaryId":"validationSummary"});
//]]>
</script>
remove tags like