Unable to set the 'ajaxEnabled' property of an undefined or null reference


I have developed a website for PC using asp.net MVC5. Now trying to develop a mobile supported anonymous access web page for same website using asp.net MVC5. I created a new project for this and downloaded jQuery.Mobile.MVC from Nuget console. This added mobile layout in the project with the JS code

$(document).ready(function () {
    $.mobile.ajaxEnabled = false;

I just added a new view with this mobile layout and added few label controls to see how it works. It throws below error

JavaScript runtime error: Unable to set property 'ajaxEnabled' of undefined or null reference

Do I have to add any other libraries? This is my first mobile page. It would be great if you are help with some good tutorials

I have included jquery.mobile.js references


Did you include jquery and jquery.mobile js scripts yet? Adding this into document ready and see whether or not it is working.

$(document).bind("mobileinit", function () {
    $.mobile.ajaxEnabled = false;