更新面板中的事件冒泡
当您使用更新面板进行更新时,我会丢失所有将它们附加到更新面板内的 DOM 元素的 jquery 元素。 当更新面板触发时有没有办法重新连接这些?
When you do an update with update panel I loose all my jquery elements that attached them too the elements of the DOM inside the update panel. Is there a way to reattach these when update panel fires?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
发生这种情况是因为 ASP.NET 更新面板将您之前附加功能的元素替换为新元素。 考虑使用 jQuery 的 live() 实用函数。
This is happening because the elements you had previously attached functions to are replaced by new elements by the ASP.NET update panel. Consider using jQuery's live() utility function.