Created
April 25, 2012 16:41
-
-
Save battlejj/2491196 to your computer and use it in GitHub Desktop.
jQuery Quickie: IE Quirk w/ :enabled selector
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('input:not(:disabled)'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('#myInput').is(':disabled'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //all enabled fields - well...almost all (hidden fields are missing) in IE | |
| $('input:enabled'); | |
| //all disabled fields | |
| $('input:disabled'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment