How would I select elements that have any ID? For example:
if ($(\".parent a\").hasId()) { /* then do something here */ }
I, by no mean
I seemed to have been able to solve it with:
if( $('your-selector-here').attr('id') === undefined){ console.log( 'has no ID' ) }