why i have to call or declare this jquery.validate.unobtrusive.min.js in each partial page where i need validations.
I have already define the js in master layout.
Thank You for your help
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, you don’t need to do that. Adding it once in the Layout is more than enough.
Of course if you add some partial HTML to your DOM using for example an AJAX call and this HTML contains form elements that need to be bound to unobtrusive validation you need to force their parsing using the following the
parsemethod that you need to invoke immediately after adding or replacing some elements to the DOM: