更新panal更新后,JQuery无法工作。

编程入门 行业动态 更新时间:2024-10-28 01:20:22
本文介绍了更新panal更新后,JQuery无法工作。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

首次使用jQuery和updatepanal在我的页面中正常工作但更新我的updatepanale它不起作用。使用postback triger以便工作,可以在updatepanal中使用jquery workig而不使用postback triger。

use jQuery and updatepanal in my page first time it properly working but update my updatepanale it not working. use postback triger so that working, it that possible jquery workig in updatepanal without postback triger.

推荐答案

如果你使用 if you used

( document )。ready(功能(){ // ..... }); (document).ready(function (){ //..... });

然后它只调用一次它在updatepanel中没有工作 但是如果你想每次都重复使用js,那么请使用下面的代码。

Then it called only one time it's not worked in updatepanel but if you want to re-use the js every time then use below code.

function pageLoad(sender, args) { //put your code here.... }

<html xmlns="www.w3/1999/xhtml"> <head runat="server"> <title></title> <script src="jquery-2.1.3.min.js" type="text/javascript"></script> <script type="text/javascript"> //JS working issue demo by click on link //Below code works every time function pageLoad(sender, args) {

更多推荐

更新panal更新后,JQuery无法工作。

本文发布于:2023-10-06 18:40:10,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1467616.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:工作   panal   JQuery

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!