0
我添加更新到我的asp.net頁面,我也使用jquery。但是,當任何部分回發發生時(未調用document.ready()),jquery停止運行。
示例代碼:
<script type="text/javascript">
$(document).ready(function() {
$("SELECT").selectBox();
}
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Dropdownlist id="ddlproduct" runat="server" onselectedindexchange="function"></asp:Dropdownlist>
由於您使用一個ScriptManager和UpdatePanel的使用ASP任何建議提前
請參照類似的問題 http://stackoverflow.com/questions/256195/jquery-document-ready-and-updatepanels – Shebin