On 9/4/07, Azbok <[EMAIL PROTECTED]> wrote:
> I'm trying to just get the number of modified inputs that aren't
> disabled.  I'm using the moreSelectors plugin.
>
> active_inputs_modified =
>   $("input:modified").not($("[EMAIL PROTECTED]")).length;
>
> I can't figure out how to combine that into 1 jquery expression
> without using the 'not' function.

Either can I really, although this might be shorter and still work:

$('input:modified:not([disabled])').length;

I didn't use the @ symbol as it is deprecated in jQuery 1.1.4 but you
will need to add it for earlier versions.

>
> Similarly how would one go about doing something like getting all
> the :even span elements which are also :hidden in 1 expression?

I would try this:

$('span:even:hidden');   // you can chain :expressions

>
> Thanks!
> azbok

None of my code is tested O:)

Joel Birch.

Reply via email to