1

I have referred to this datepicker to use in my UI

http://jsfiddle.net/2AaFk/1/

it is working perfectly.

when i copied to work in my UI css is not not working in IE11.

here i have created a plunker link for your reference.

this is what i have done.

https://plnkr.co/edit/D7BmYM1Bb2eZfiZMdk9g?p=preview

jquery

if ( $('#test')[0].type != 'date' ) $('#test').datepicker();

this date picker is working in chrome, but css is not working in IE11. can anybody help me.

Alex K.
  • 171,639
  • 30
  • 264
  • 288
Vinoth
  • 972
  • 1
  • 16
  • 47
  • The plnkr is broken because you request script over HTTP from an HTTPS URL which wont work, if you fix that then you will not get CSS in Chrome either because you are not including jQueryUI CSS anywhere. – Alex K. Jul 26 '17 at 12:55
  • What css? I see no CSS in your plnkr url... – JP Hellemons Jul 26 '17 at 12:56
  • @JPHellemons that fiddle also css is not available then how it is working in IE. just open the fiddle – Vinoth Jul 26 '17 at 12:57
  • @Vinoth just opened the jsfiddle url in IE11 and does display the css ;) – JP Hellemons Jul 26 '17 at 12:59
  • jsfiddle is including jquery-ui.css, perhaps automatically, if you trace the styles thats where they originate from. – Alex K. Jul 26 '17 at 12:59

1 Answers1

1

Just add the CSS. JsFiddle does that for you. For instance, add it from a CDN

https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.9.2/themes/base/jquery-ui.css

source: https://cdnjs.com/libraries/jqueryui

enter image description here

JP Hellemons
  • 5,977
  • 11
  • 63
  • 128