change "broken/notfound" image not working

change "broken/notfound" image not working

RobinsonHuRobinsonHu Posts: 8Questions: 3Answers: 1

Could someone help me with right use of "onerror" while I return images?
Here is my example:
http://live.datatables.net/cayafasi/1/edit

it still shows the default "broken/notfound" image instead of the one I defined. Why? :(

This question has an accepted answers - jump to answer

Answers

  • RobinsonHuRobinsonHu Posts: 8Questions: 3Answers: 1
    Answer ✓

    I found my problem.

    onerror="this.src="https://via.placeholder.com/140x100.png"
    

    to

    onerror=this.src="https://via.placeholder.com/140x100.png"
    
This discussion has been closed.