Newbie needs a simpler way...

Newbie needs a simpler way...

I am simply trying to show some DOM elements that meet to criteria:

1) The id must contain a given substring and
2) The elements value must contain a given substring.

The problem I am having is that I do not know how to put the selection criteria in the same expression. I need to do something like this, but don't know how:

$(".user").children("td[id^='lastName'] && td:contains('xyz')").parent().show();

Thanks.