1

For my checkbox (following), I used the JQuery condition (:checked) to check if the checkbox is clicked on. It works fine in all the browsers but just doesn't work in IE8. Any idea or assistance?

<input type="checkbox" id="chbx" name="samechbx" onchange="checkbox_changed(this)" />

JS

function checkbox_changed(el) {

        if ($('#chbx').is(":checked")) {
            //if checked, move in.
        }
}
1
  • Which version of jquery are you using? Commented Dec 3, 2014 at 21:17

1 Answer 1

2

This older post explains, that in IE8 and older the change and onchange event is only executed on submit. This means you should go with the onclick event and should be fine:

Jquery check box change function not working in IE 8

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

Comments

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.