[jQuery] Select empty tables

2009-03-18 Thread nguyenq

I'm trying to select tables whose cells are all empty. $
("table:empty") seems to return tables with no body. $("td:empty")
finds empty cells. Can anyone help with such a selector? Thanks.


[jQuery] Re: Combining selectors

2008-10-23 Thread nguyenq

All of them work. Thank you all.

On Oct 22, 6:35 pm, ricardobeat <[EMAIL PROTECTED]> wrote:
> That should work, but it's worth noting that the '@' in front of
> attribute names has been deprecated.
>
> $('input[type=button],input[type=submit],input[type=reset]')
>
> jQuery also has pseudo-selectors for these elements:
>
> $(':button,:submit,:reset')
>
> []s
> - ricardo
>
> On Oct 22, 6:25 pm, "Mauricio \(Maujor\) Samy Silva"
>
> <[EMAIL PROTECTED]> wrote:
> > Try:
> > $("[EMAIL PROTECTED]'button'], [EMAIL PROTECTED]'submit'],
> > [EMAIL PROTECTED]'reset']").addClass("button");
>
> > See:http://docs.jquery.com/Selectors/multiple#selector1selector2selectorN
>
> > Mauricio
> > -
>
> > > I need help in this compound selector problem. I have the following
> > > jQuery statements, which are working:
>
> > >    $("[EMAIL PROTECTED]'button']").addClass("button");
> > >    $("[EMAIL PROTECTED]'submit']").addClass("button");
> > >    $("[EMAIL PROTECTED]'reset']").addClass("button");


[jQuery] Combining selectors

2008-10-22 Thread nguyenq

I need help in this compound selector problem. I have the following
jQuery statements, which are working:

$("[EMAIL PROTECTED]'button']").addClass("button");
$("[EMAIL PROTECTED]'submit']").addClass("button");
$("[EMAIL PROTECTED]'reset']").addClass("button");

I want to combine them into a single statement, such as:

$("[EMAIL PROTECTED]'button' or @type='submit' or
@type='reset']").addClass("button");

or

$("[EMAIL PROTECTED]'button'] or [EMAIL PROTECTED]'submit'] or
[EMAIL PROTECTED]'reset']").addClass("button");

similar to the Boolean OR that XPATH expresssion allows, but it does
not work. What is the proper syntax, if the combining is possible?