jQuery: The Write Less, Do More JavaScript Library

Re: Selector :enabled no longer finds hidden elements

by John Resig :: Rate this Message:

Reply to Author | View in Thread


Jacob -

We made this change to become more standards compliant (the browsers
that supported querySelectorAll interpreted :enabled in this manner -
assuming that a hidden element was always not enabled).

--John



On Thu, Jan 29, 2009 at 10:48 AM, Jacob <pinano@...> wrote:

>
> In a normal form POST, a form element with <item type="hidden"> will
> send those hidden elements as request variables alongside visible
> enabled variables.
>
> In jQuery 1.3.1, filtering on $(":enabled", myForm) will only find
> VISIBLE enabled elements, which is changed since jQuery 1.2.6. I don't
> believe this change is correct.  Is there an explanation for this
> change? Can we revert it to the earlier behavior, or is there a good
> alternative?
>
> Thanks for your time,
> Jacob
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to jquery-dev+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: Selector :enabled no longer finds hidden elements