How would I select elements that have any ID? For example:
if ($(\".parent a\").hasId()) { /* then do something here */ }
I, by no mean
You can do this:
if ($(".parent a[Id]").length > 0) { /* then do something here */ }