Yusaf Khaliq
Yusaf Khaliq

Reputation: 3393

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/"]))

Upvotes: 4

Views: 1139

Answers (1)

gdoron
gdoron

Reputation: 150263

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

LIVE DEMO

Upvotes: 8

Related Questions