I have a <img>
:
<img src="http://example.com/mmm/01.jpg" class="test">
How can I check if the src is missing the 01.jpg
and replace it with some other image?
Basically
if (img src is 'http://example.com/mmm/') {
replace src with 'http://example.com/mmm/test.jpg'
}