Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

select an img which does not contain word in src

If i have the 4 images

<img src="img/tracker/"/>
<img src="img/tracked/"/>
<img src="img/tracking/"/>
<img src="img/track/"/>

how can i select the last 3 images by using src does not contain I have tried $(img:not([src*="/tracker/"]))

like image 569
Yusaf Khaliq Avatar asked Oct 25 '25 12:10

Yusaf Khaliq


1 Answers

$('img:not([src*="/tracker/"])')...
  • The selector should be a string.

LIVE DEMO

like image 82
gdoron is supporting Monica Avatar answered Oct 28 '25 04:10

gdoron is supporting Monica