Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mikesherov opened this issue Oct 15, 2012 · 1 comment

Comments

@mikesherov
Copy link
Member

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

@kswedberg
Copy link
Member

The pull request was merged in.

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

Successfully merging a pull request may close this issue.

2 participants