I am using this with jquery 1.7. I keep getting – jQval is undefined error.
This is how i am loading the script.
$.ajax({
url: "http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.validate.unobtrusive.js",
dataType: "script",
cache: true,
success: callback
});
I also tried loading it directly in the head – same error
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.validate.unobtrusive.js" type="text/javascript"></script>
Solved
Cascading the ajax load calls solved it.. it looks like a timing issue on loading the two files