Skip to content

Error in prop() documentation, regarding statement about checkbox state and attr() #1194

@jayschmidgall

Description

@jayschmidgall

On this page:
http://api.jquery.com/prop/

this line of text seems wrong:

"$(elem).attr("checked") (1.6.1+) "checked" (String) Will change with checkbox state"

shouldn't this read, "Initial state of the checkbox; does not change" instead?

The Example just below it seems to support my opinion.

#288 initially recorded this problem, but the resolution, #1180, seems to have corrected the attr documentation but not the prop documentation, as it is still in the prop documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions