I am having issues when I try to use jquery-ui. I'm not exactly sure what's wrong as I tried following several of the jquery-ui examples. I'm sure it has something to do with perhaps the version of jquery being used, but I'm not experienced enough to know what's happening so I am turning to you guys for advice.
I'm including the jquery-ui.js and the jquery-ui.css. I use it like this:
$( "#datepicker" ).datepicker();
But I get the following:
Uncaught TypeError: $(...).datepicker is not a function
Any suggestions?
Comments
<link href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css" rel="stylesheet"> <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script> <script> // $j is now an alias to the jQuery function var $j = jQuery.noConflict( true ); </script>
Now, this works as expected:
$j( "#datepicker" ).datepicker();