How would I select elements that have any ID? For example:
if ($(\".parent a\").hasId()) { /* then do something here */ }
I, by no mean
Simply use:
$(".parent a[id]");