There is no such attribute as unchecked
in HTML. And, in any case, you don't want to remove or add the attribute: checked
is a *property* of a checkbox, not an attribute, per se. jQuery uses prop( )
for changing properties.
Your placement of this
in there is utterly wrong.
You just want to check the box: