I want to remove anchors with href contains \"#tab\" without a specific css class \"atitleTabs\" from some specific divs whose Id contains \"tab\". I have trie
You can use attribute contains selector:
$('[id*="tab"]').find('[href*="#tab"]').remove();