Catching error when .css fails
Catching error when .css fails
Is it possible to set up an error handler that is called when a .css fails due to, say, a non-existent URL? E.g. $("#blahblah").css("background-image","url(thisiswrong.png)");
I've tried this but haven't gotten it to work.
http://jsfiddle.net/ajb568/xWmn4/2/
Thanks.
Topic Participants
adambeneschan
jakecigar