How to check if any child element of the parent element has a given attribute, say "xyz" in JQUERY?

How to check if any child element of the parent element has a given attribute, say "xyz" in JQUERY?

How to check if any child element of the parent element has a given attribute, say "xyz" in JQUERY?