单选/复选框按钮“;oncheck";使用javascript检查/选择时的事件
如何检测单选/复选框按钮被javascript选中的时刻 例: 是否有方法检测“myRadioButton”和atach处理程序的状态更改单选/复选框按钮“;oncheck";使用javascript检查/选择时的事件,javascript,checkbox,Javascript,Checkbox,如何检测单选/复选框按钮被javascript选中的时刻 例: 是否有方法检测“myRadioButton”和atach处理程序的状态更改 我特别为Internet Explorer 6+需要它。最后我找到了一个解决方案,触发单选/复选框按钮的事件用javascript检查(不仅如此)在ie中称为onpropertychange,在firefox中称为DOMAttrModified在跨浏览器中是否有任何内容。? document.getElementById("myRadioButton").c
我特别为Internet Explorer 6+需要它。最后我找到了一个解决方案,触发单选/复选框按钮的事件用javascript检查(不仅如此)在ie中称为onpropertychange,在firefox中称为DOMAttrModified在跨浏览器中是否有任何内容。?
document.getElementById("myRadioButton").checked = true