Click here to Skip to main content
15,881,600 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I tired to use the date with time picker control and I used the code from this link
http://www.aspsnippets.com/Articles/Implement-DateTimePicker-in-ASP.Net-using-jQuery-Plugin.aspx
.
when I click to change the time option, automatically the time is scrolling either way when move the mouse anywhere on the screen.Is there any error in this code?

<script src="Scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="Scripts/jquery.dynDateTime.min.js" type="text/javascript"></script>
<script src="Scripts/calendar-en.min.js" type="text/javascript"></script><link href="Styles/calendar-blue.css" rel="stylesheet" type="text/css" /><script type="text/javascript">

    $(document).ready(function () {

        $("#<%=TextBox1.ClientID %>").dynDateTime({

            showsTime: true,

            ifFormat: "%Y/%m/%d %H:%M",

            daFormat: "%l;%M %p, %e %m, %Y",

            align: "BR",

            electric: true,

            singleClick: true,

            displayArea: ".siblings('.dtcDisplayArea')",

            button: ".next()"

        });

    });

</script><asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
<asp:TextBox ID="TextBox1" runat="server" ReadOnly = "true"></asp:TextBox>

<img src="calender.png" />

<asp:Button ID="btnSave" runat="server" Text="Save"  />
</asp:Content>
Posted
Updated 20-Jul-15 5:22am
v2

1 solution

Why not ask the guy who wrote it: there is a "comments" box at the bottom of the page for communicating with him. If nothing else, he will know more about it than anyone else...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900