更改 href 或删除按钮的 onclick
<a href="javascript:__doPostBack('btnContinuePhone','')" class="button-hpo blue-button-23" id="btnContinuePhone" onclick="javascript:return ConfirmModalPopUp('phone');"><span>Next</span></a>
我想更改此按钮的 href 并在单击时删除。谁能告诉我如何在 jquery 中做到这一点?
<a href="javascript:__doPostBack('btnContinuePhone','')" class="button-hpo blue-button-23" id="btnContinuePhone" onclick="javascript:return ConfirmModalPopUp('phone');"><span>Next</span></a>
I want to change the href of this button and also removing on click. Could anybody tells me how to do it in jquery?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你可以尝试这样的事情:
You can try something like this:
这是附加的演示: http://jsfiddle.net/xavi3r/DQ4Sn/
Here is a demo attached: http://jsfiddle.net/xavi3r/DQ4Sn/
这是我的解决方案:
或者您也可以这样做:
This is my solution :
Or you can do that alternativly: