If you want to add an IMAGE file using jQuery, This code is the best for you, that’s the code I give in the below text. I hope this code will be helpful for you when you use this example code.
<script> $(document).ready(function(){ if(myVar==""){ $("#map").prepend('<img alt="Images" title="Map Image" src="images/my_image.png" style="width:100%; height:310px" />'); } }); </script>
Question and answer is powered by AnsPress.io