SyntaxFix
Write A Post
Hire A Developer
Questions
This occurs because you with the newest version of jquery attr('checked') returns 'checked' while prop('checked') returns true.
attr('checked')
'checked'
prop('checked')
true