<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<p runat="server">
<asp:Label ID="lblDOA" runat="server" Text="Appointment Date :" Height="21px"
Width="136px" Visible="False"></asp:Label>
<asp:TextBox ID="txtDOA" runat="server" CssClass="fieldz" AutoPostBack="false"
Visible="False" ViewStateMode="Enabled"></asp:TextBox>
</p>
</ContentTemplate>
</asp:UpdatePanel>
This above textbox is not visible when the page is initially loaded. I make it visible when user clicks on some other drop down list and make some selection. The textbox shows up but the Jquery datepicker I have with it does not fire, because the textbox is made visible using AJAX UpdatePanel its HTML doesn't get added to the page.
Any guidance how to fix it?
I am pasting Jquery below.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js"
type="text/javascript"></script>
<script type="text/javascript">
jQuery(function ($) {
//$("#occurrence_dateTextBox").mask("99/99/9999");
$("#<%= txtDOA.ClientID %>").datepicker();
//$(".datepicker").datepicker();
</script>
});