views:

29

answers:

1

question in subject . .

basically i see that i can do this to get all hidden elements

var input = $(#mytable:hidden);

but i can't seem to do something like this:

var input = $(#mytable:hidden:input.updatable);

is there a way to have multiple criteria in a selector

+4  A: 

Try this.

var input = $("#mytable input.updatable:hidden");

Alternatively, you can specify a "context" to search within. This should have the same result as the example above, just another way to do it.

var table = $("#mytable");
var input = $("input.updatable:hidden", table);
jessegavin