I have two types of anchor tags that you can see.
First:
<a>Link</a>
and second:
<a href="http://facebook.com"></a> <a href="http://twitter.com"></a>
I just want to select only tags of this type <a>Link</a> using jquery.
You should use the :not css selector:
:not
$('a:not([href])')
Select all a tags without href attribute
href
jQuery docs here
$('a').filter(function(){ return !$(this).attr('href'); });
Working example: http://jsfiddle.net/3Sczq/
Source: https://habr.com/ru/post/1443239/More articles:Understanding the output of dtruss - linuxShould I worry about resource limits for flash write cycles? - androidEclipse creates several launch configurations each time the same Scala program runs - eclipseaccess to a public member of a base class from a derived class - c ++VSTO Office (Excel) Add-In - WPF XAML Style, ResourceDictionary - excelMy mapView does not show a map, it just shows overlay elements - androidHow to delete a specific user session in ServiceStack? - servicestackUPDATING multiple rows with SELECT - joinSSRS strings - RDL Tablix not paginated - reporting-servicesJIT Spacetree Save Shortcuts As Image - javascriptAll Articles