0
<head runat="server">
    <title></title>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.min.js"></script>
    <link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/themes/ui-lightness/jquery-ui.css"/>

<script>
    $(document).ready(function() {
    $("#TextBox1").datepicker();

    });
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    </div>
    </form>
</body>

JQuery Datepicker without css

Should I be linking any other css files? Or is it a problem with Google CDN?

Null Head
  • 2,877
  • 13
  • 61
  • 83

2 Answers2

3

you are using <script> for css instead of <link>

EDIT:

and rel="stylesheet" is missing

manji
  • 47,442
  • 5
  • 96
  • 103
1

Still cant figure out how to do it with external CSS. A faster solution was to keep the CSS files local.

Null Head
  • 2,877
  • 13
  • 61
  • 83