To replace all the missing images with another, you can update the src
attribute inside the callback passed to .error()
. Be sure that the replacement image exists; otherwise the error
event will be triggered indefinitely.
1
2
3
4
5
6
|
|