0

I try datepicker link link datepicker .. datepicker and i try this code

<input  ID="fromdate" value="dd/mm/yyyy" runat="server" clientidmode="static" />

when i try this code

<script type="text/javascript">
    $(function () {
        $("#fromdate").datepicker();
        $("#todate").datepicker();
    });
  </script>

UPDATE

now the problem is i also use table for data and for this i use this please check link data table and i add these links for date picker and table

<%--
for date--%>
<link rel="stylesheet"    href="https://code.jquery.com/ui/1.12.0/themes/base/jquery-ui.css"/>
 <script type="text/javascript"   src="https://code.jquery.com/jquery-1.12.4.js"></script>
 <script type="text/javascript"  src="https://code.jquery.com/ui/1.12.0/jquery-ui.js"></script>

<%--for grid--%>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> 
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
<script src="Scripts/gridviewScroll.min.js" type="text/javascript"></script>

In table link there is also css file

<link href="Styles/gridviewScroll.css" rel="stylesheet" type="text/css" />

so when i remove css file datepicker work fine but when i add this css file then date picker look like this

datepicker image

8

1 Answer 1

1

It is working fine.

Check the following js fiddle

https://jsfiddle.net/hLx9808w/

<input  ID="fromdate" value="dd/mm/yyyy" runat="server" clientidmode="static" />

$(function () {
    $("#fromdate").datepicker();
    $("#todate").datepicker();
});  

It may be caused due to any jquery ui css override.

The issue with table structure css.

Sign up to request clarification or add additional context in comments.

12 Comments

i have these links .. <script type="text/javascript" src="ajax.googleapis.com/ajax/libs/jquery/1.7.2/…> <script type="text/javascript" src="cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0/…> <script type="text/javascript" src="ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/…> <script type="text/javascript" src="code.jquery.com/jquery-1.9.1.js"></script>
<%--datepicker--%> <link rel="stylesheet" href="code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <script type="text/javascript" src="code.jquery.com/jquery-1.10.2.js"></script> <script type="text/javascript" src="code.jquery.com/ui/1.11.4/jquery-ui.js"></script> <link href="ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/blitzer/…" rel="stylesheet" type="text/css" /> <script src="ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js" type="text/javascript"></script>
<%--for grid--%> <script type="text/javascript" src="ajax.googleapis.com/ajax/libs/jquery/1.8.2/…> <script type="text/javascript" src="ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/…> <script type="text/javascript" src="Scripts/gridviewScroll.js"></script> <script type="text/javascript" src="Scripts/gridviewScroll.min.js"></script> <link rel="stylesheet" href="Styles/gridviewScroll.css"/>
Can you add your header links section with formatting
Your above two comment not having the full links and also not readable. So post your complete head section code in your questions description.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.