It appears that (testing 1.3.1) ":disabled" selects disabled form elements, regardless of if they are hidden. As one would expect (based on intuition and current jQuery docs).
The result is that ":disabled" is NOT the complement of enabled. ":disabled" -- select elements that are disabled ":enabled" -- select elements that are enabled, but not of type "hidden". However it DOES select elements hidden via style="display:none" That this is the behavior is not at all clear from the docs. For reference, from the HTML 4 spec: "DISABLED attribute, also new in HTML 4.0, disables the control. Disabled elements are read-only elements with the added restrictions that the values are not submitted with the form, the elements cannot receive focus, and the elements are skipped when navigating the document by tabbing." Perhaps the most intuitive behavior would be if the ":enabled", ":disabled" selectors selected elements directly corresponding to whether the disabled attribute is set, and nothing more. Cheers (thanks for you hard work jQuery devs) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---