Click here to Skip to main content
14,391,726 members
Rate this:
Please Sign up or sign in to vote.
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 6:22am
v2

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

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...
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100