Note that there are some explanatory texts on larger screens.

plurals
  1. POBootstrap DateTimePicker in update panel not working
    text
    copied!<p>I can't seem to get this datetimepicker (<a href="http://tarruda.github.io/bootstrap-datetimepicker/#" rel="nofollow">http://tarruda.github.io/bootstrap-datetimepicker/#</a>) to work when inside the update panel. It works when it's outside the update panel. Any ideas?</p> <p>Edit: Here's the markup</p> <pre><code> &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt; &lt;ContentTemplate&gt; -- Some stuff here -- &lt;div id="pnlModal" class="modal hide fade in" style="display: none;"&gt; &lt;div class="modal-header"&gt; &lt;a class="close" data-dismiss="modal"&gt;x&lt;/a&gt; &lt;h3&gt;Edit Time In&lt;/h3&gt; &lt;/div&gt; &lt;div class="modal-body no-space"&gt; &lt;div class="span4"&gt; &lt;asp:Image ID="imgPic" runat="server" style="width:200px;" ImageUrl="~/assets/img/nopic.png" CssClass="pictu" /&gt;&lt;br /&gt; &lt;/div&gt; &lt;asp:Label ID="lblKey" runat="server" Visible="false" /&gt; &lt;h5&gt;&lt;asp:Label ID="lblIDNumber" runat="server" Text="[ID Number]" /&gt;&lt;/h5&gt; &lt;h4&gt;&lt;asp:Label ID="lblName" runat="server" Text="[Name]" /&gt;&lt;/h4&gt; &lt;h4&gt;&lt;asp:Label ID="lblChiName" runat="server" Text="[ChiName]" /&gt;&lt;/h4&gt; &lt;asp:Label ID="lblAddress" runat="server" Text="[Address]" /&gt;&lt;br /&gt; Time In: &lt;asp:Label ID="lblTimeIn" runat="server" Text="[TimeIn]" /&gt; &lt;div id="datetimepicker3" class="input-append"&gt; &lt;input data-format="hh:mm:ss" type="text"&gt;&lt;/input&gt; &lt;span class="add-on"&gt; &lt;i data-time-icon="icon-clock" data-date-icon="icon-calendar"&gt;&lt;/i&gt; &lt;/span&gt; &lt;/div&gt; &lt;script type="text/javascript"&gt; $(function () { $('#datetimepicker3').datetimepicker({ pickDate: false }); }); &lt;/script&gt; &lt;/div&gt; &lt;div class="modal-footer"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/ContentTemplate&gt; &lt;/asp:UpdatePanel&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload