Skip to content

Document that :enabled and :disabled represent the boolean value of a property #117

Closed
@mikesherov

Description

@mikesherov

They are different from "[disabled]", which would detect the existence of a disabled property regardless of its value.

In brief:

"enabled": function( elem ) {
    return elem.disabled === false;
},
"disabled": function( elem ) {
    return elem.disabled === true;
},

Please see http://bugs.jquery.com/ticket/12295 for more information

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