Click here to Skip to main content
15,895,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I can get it to work in:

http://jsbin.com/bomuvijuze/1/edit?html,js,output[^]

But I it does not work in ASP.net
XML
...
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.js" %>"></script>
    <script type="text/javascript" src="http://code.jquery.com/ui/1.11.4/jquery-ui.js" %>"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#Text1").datepicker({ minDate: new Date(2000, 1, 1), maxDate: new Date(2025, 1, 1), dateFormat: 'mm,dd,yyyy', firstDay: 1 });
        });
    </script>
...
Date:<input id="Text1" type="text" runat="server" />

Error code at $("#Text1").datepicker:
JavaScript runtime error: Object doesn't support property or method 'datepicker'
Posted
Comments
PIEBALDconsult 2-Jun-15 21:46pm    
Derive from NosePicker?

1 solution

It is a sign that the jQuery core and jQuery UI libraries not available. Check the 2 lines of script src syntax.
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 3-Jun-15 0:52am    
Agree, a 5.
It hardly has anything to do with ASP.NET.
—SA

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