Jump to content

My jquery datepicker isnt working in IE


wright67uk

Recommended Posts

This code works well in firefox and chrome, but in IE I have just a blank box and nothing happens when I click in the box.

 

Can you tell my why this isnt working in IE?

(tested on IE.9)

 

<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js" type="text/javascript"></script>
<script>
(function() {
var elem = document.createElement('input');
elem.setAttribute('type', 'date');


if ( elem.type === 'text' ) {
$('#date').datepicker({
dateFormat: 'dd-mm-yy',
// defaultDate: +5
maxDate : +3
});
}
})();


</script>


</head>


<body>
<form>
<input type="date" name="date" id="date" value=" " />
</form>
</body>
</html>

Link to comment
https://forums.phpfreaks.com/topic/273053-my-jquery-datepicker-isnt-working-in-ie/
Share on other sites

I'm a bit new to this, but I've gone into the page were talking about in ie and pressed f12, I've gone through the various tabs, profiling and debugging buttons and I can't find any errors.

 

I've also tried Tools >> Internet Options >> Advanced Tab >> Browsing >> Check the "Display a notification about every script error" checkbox.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.