How to check image loaded or not in JQuery?

By Hardik Savani September 5, 2020 Category : Javascript jQuery

Sometimes we need to detect upto image load successfully, for example you want to do print text instead of image before load image. so you can do that using jquery load and error method. you can see bellow example:


<script type="text/javascript">



console.log("Now loaded correctly");



console.log("Found Error in loading image");



We are Recommending you