my issue: On jsfiddle, I managed to successfully hide broken image icon. However when loaded up on Chrome extension, It doesn't work :/
example:
some background: the "post.url" may or may not be an image file. And I would like to hide it if it's not. How do I do that?
This is my current code:
$("#art").append('<img id="img" src="' + post.url + '"onerror="this.style.display=\'none\'"/>');