<html lang="en"> <head> <title>jQuery UI Datepicker - Default functionality</title> </head> <body> <form runat="server"> <asp:ScriptManager ID="ScriptManager2" runat="server"> </asp:ScriptManager> <asp:UpdatePanel runat="server"> <ContentTemplate> <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script> <script> $(function () { $("#datepicker").datepicker(); }); </script> <asp:Wizard ID="Wizard1" runat="server"> <WizardSteps> <asp:WizardStep ID="WizardStep1" runat="server" Title="Step 1"> <asp:Panel ID="pnl" runat="server"> <asp:TextBox runat="server" type="text" ReadOnly="true" ID="datepicker"></asp:TextBox> </asp:Panel> </asp:WizardStep> </WizardSteps> </asp:Wizard> </ContentTemplate> </asp:UpdatePanel> </form> </body> </html>
$(function () { $("#<%= datepicker.ClientID %>").datepicker(); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)