I get 'undefined is not a function' for my script when using both the jquery-ui.js and jquery.js scripts. I need the 'ui' for my datepicker, but the rest of items (not shown) on the page need jquery.js. Any ideas?
<!DOCTYPE html />
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<META http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" TYPE="text/css" HREF="/img/style/screen.css">
<link rel="stylesheet" TYPE="text/css" HREF="/Test/pbforms.css" />
<title>jQuery UI Datepicker - Default functionality</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css">
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script src="http://code.jquery.com/ui/1.11.0/jquery-ui.js"></script>
<script type="text/javascript" src="/img/adn/scripts/jquery.js"></script>
<script>
$(function() {
$('#_1_1_2_1').datepicker({
dateFormat: 'yy-dd-mm',
onSelect: function(datetext){
var d = new Date(); // for now
datetext=datetext+" "+d.getHours()+": "+d.getMinutes()+": "+d.getSeconds();
$('#_1_1_2_1').val(datetext);
},
});
});
</script>
</head>
<body>
<p>Date: <input type="text" id="_1_1_2_1"></p>
</body>
</html>
_1_1_2_1is not a very good id for a textbox.