Direct replacement
1 2 3 |
$("#locked").attr("src", "img/padlock.png"); |
This adds an image directly to that div
1 2 3 4 5 |
theimage="<img src='images/profile.png' id='google_modal_image'>", $('#userimage').html(theimage) |
1 2 3 |
<div id="userimage"></div> |