Click here to Skip to main content
15,942,292 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using Datepicker in MVC4 Mobile app

Got the following error

Unhandled exception at line 2, column 1 in JScript - script block

0x800a01b6 - Microsoft JScript runtime error: Object doesn't support this property or method

$( "#datepicker" ).datepicker();


Unhandled exception at line 611, column 4 in http://localhost:64431/Scripts/jquery-1.7.1.js

0x80020101 - Could not complete the operation due to error 80020101 in

jQuery 1.7.1.js :

Collapse | Copy Code

( window.execScript || function( data ) {
window[ "eval" ].call( window, data );
} )( data );
Nelek 25-Jun-13 4:30am    
Please don't repost the questions

1 solution

//Dont forget to give arr id="datepicker"

$(document).ready(function () {
$( "#datepicker" ).datepicker();
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900