I have been asking around but I dont seem to be getting any answers.
I want to load a default image which will be "/images2/no-avatar.png" if another image fails. The img id will be "avatar".
I have the latest version of jQuery so that wont be an issue.
The image will look something like this:
<img src="http://www.website.com/the-image.jpg" height="100" width="100" id="avatar" />
and if it fails look like this
<img src="/images2/no-avatar.png" height="100" width="100" id="avatar" />
I have been trying to find this for a while with no answers, so if you help thanks in advanced.