为什么 jQuery 不会触发输入的更改事件?

发布于 2025-01-05 06:28:14 字数 129 浏览 5 评论 0原文

我将 jQuery 与 asp.net 一起使用。 我有一个输入,其值会在处理后发生变化: 首先单击一个按钮,打开一个弹出对话框并选择一个项目,然后关闭弹出窗口并更改我的输入值。 我想获取更改事件并执行某些操作,但什么也没有发生。 感谢您的帮助

I use jQuery with asp.net.
I have an Input that its value will change after a process:
first a button is clicked and a popup dialog is opened and an item is selected, then popup is closed and the value of my input is changed.
i want to get the change event and do sth, but nothing happen.
Thanks for help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

幸福%小乖 2025-01-12 06:28:14

您在寻找这样的东西吗?

http://jsfiddle.net/rsarika/b9NTS/1/

Are you looking for something like this?

http://jsfiddle.net/rsarika/b9NTS/1/

殊姿 2025-01-12 06:28:14

当弹出窗口打开时,我在会话中设置参数,然后当主页聚焦时,我检查会话是否有值(使用ajax),然后我得到了更改值!

When the popup is opened I set the parameter in session and then when the main page is focused I checked if the session has value (with ajax) and then I got the change value!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文