-1

I'm a newbie. While im working on datepicker, somehow it is not working properly on IE. Please check the below imageenter image description here

and here is the code:

function pageLoad() {
        $(function () {
            $("#textBox").datepicker({
                showOn: "button",
                buttonImage: "someImageUrl", 
                buttonImageOnly: true,
                dateFormat: "M dd,yy",
                buttonText: "Select date"
            })
        });
        $("#textBox").val(defaultDate);
    }

here are the versions of JQuery

<script src="//code.jquery.com/jquery-1.10.2.js" type="text/javascript"></script>
<script src="//code.jquery.com/ui/1.11.1/jquery-ui.js" type="text/javascript"></script>

Sorry here are the CSS:

<link id="lnkStyleSheet" runat="server" rel="stylesheet" href="../CSS/StyleSheet.css" type="text/css" />

MustangManiac
  • 317
  • 2
  • 13

3 Answers3

1

You need to include the CSS and images that come with jQuery UI.

<link rel="stylesheet" href="jquery-ui.min.css">

See the "Basic Overview: Using jQuery UI on a Web Page" section here: http://learn.jquery.com/jquery-ui/getting-started/

Will
  • 2,790
  • 19
  • 22
  • 1
    A little more information would be helpful in making this a complete answer. – showdev Sep 16 '14 at 20:00
  • @DenimChicken: I'm looking for this kind of functionality: http://jqueryui.com/datepicker/#icon-trigger – MustangManiac Sep 16 '14 at 20:11
  • 1
    It appears to be a CSS issue so I'd follow the basic overview and confirm that the CSS and image files are loading correctly. – Will Sep 16 '14 at 20:11
0

You could roll your own theme and use those files

http://jqueryui.com/themeroller/

DeFeNdog
  • 1,156
  • 1
  • 12
  • 25
0
   <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css"/>

Just add it in your HTML head before code

Adrien Lanoie
  • 23
  • 1
  • 4