There is no live() function in jquery 1.9.0, but jquery.unobtrusive.ajax.js is already use this function.
Should I use older version of jquery or another way?
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.
Depreciated as of 1.7 and removed as of 1.9. Use
on()instead.http://api.jquery.com/on/
Lots of good info here:
http://www.elijahmanor.com/2012/02/differences-between-jquery-bind-vs-live.html
As for Unobtrusive Ajax, you will need to include a version of jQuery prior to v1.9 where
live()still exists.If you are referencing the MS CDN,
http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.unobtrusive-ajax.js
http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.unobtrusive-ajax.min.js
then it does not appear that these directly reference jQuery. Simply include the 1.8 version in your code instead of the 1.9 version.