UserVoice 小部件关闭按钮事件覆盖
我希望能够修改或添加 UserVoice 小部件的 a href 标签的 onclick。
该代码是为我生成的。
<a title="Close Dialog" id="uservoice-dialog-close" onclick="UserVoice.Dialog.close(); return false;" href="#close"><span style="display: none;">Close Dialog</span></a>
我想调用那里的内容,但在单击关闭时添加我自己的方法。我不会或不想修改生成此代码的源代码,而是在文档准备好后添加到它。
I want to be able to modify or add to the onclick of the a href tag for a UserVoice widget.
This code is generated for me.
<a title="Close Dialog" id="uservoice-dialog-close" onclick="UserVoice.Dialog.close(); return false;" href="#close"><span style="display: none;">Close Dialog</span></a>
I want to call what is there but add my own method when clicking close. I do not or do not want to modify the source that generates this code but rather add to it upon document ready.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
jQuery 来救援。
这有效:
我正在尝试:
jQuery to the rescue.
This works:
I was trying: