Reputation: 48
So, I am using a very simple Datepicker. It works fine in Firefox and Chrome. But not at all in IE. I am relatively new to jQuery and cannot figure this out. Here is my code. I stripped it down so that this page has nothing but the datepicker on it, but still doesn't work.
<!DOCTYPE html>
<html>
<head>
<title>Testing</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css" />
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$('#txtDate').datepicker({
showAnim: 'slide',
dateFormat: 'mm-dd-yy',
});
});
</script>
<style>
body
{
font-family:Arial;
font-size : 10pt;
padding:5px;
}
</style>
</head>
<body>
<input type='text' id='txtDate'>
</body>
</html>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
Upvotes: 1
Views: 9617
Reputation: 48
Apparently, it was a server issue. I used the method described on the link suggested by Mark. That didn't work on the development server so just to be sure, I tried it on the development server and it does work. Thanks Mark.
Upvotes: 1