3

How to detect the moment when a radio/checkbox button is checked with javascript?

Ex:

document.getElementById("myRadioButton").checked = true

Is there a method to detect the state change of "myRadioButton" and atach a handler?

I need it specially for Internet Explorer 6+.

0

1 Answer 1

3

Finally I found a solution, the event that triggers then radio/checkbox buttons are checked with javascript(and not only) is called onpropertychange in ie and DOMAttrModified in firefox

Sign up to request clarification or add additional context in comments.

1 Comment

is there is anything which on cross browser.?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.