views:

64

answers:

2

I'm having a HTML document which has images to local files like:

<img src="file:///C:/...

How can I select all images with file:// in the src tag?

+10  A: 

You're looking for the Attribute-starts-with selector.

For example:

$('img[src^="file://"]')
SLaks
+2  A: 

Use the Attribute Starts With Selector.

$('img[src^=file:///]')
Jimmy Cuadra
Until he gets `<img src="file.png" />`. **EDIT** : This comment is no longer relevant.
SLaks