Disabling onclick attribute with javascript(使用 javascript 禁用 onclick 属性)
问题描述
当其中一个事件被激活后,如何禁用另一个 onclick 事件.两个 div 都设置为 display:none;在 CSS 中.这可能真的很简单,但我是编程新手.
How do I disable the other onclick event once one of them has been activated. Both divs are set to display:none; in the CSS. This is probably really simple but I am new to programming.
HTML
Javascript
推荐答案
这应该可以解决问题:
这篇关于使用 javascript 禁用 onclick 属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!