Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

Update example of targetChecked #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

fluxxu
Copy link

@fluxxu fluxxu commented Mar 29, 2016

I think it is better to use 'change' instead of 'input' because 'input' never fires for checkbox.

Tested in:
Chrome 49.0.2623.87 (64-bit)
Safari 9.0.3 (11601.4.4)
Firefox 44.0.2

Test Code:

<input type="checkbox" id="t"/>
document.getElementById('t').addEventListener('input', function () {
    alert('input')
})

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant