$(document).ready(function() { $("#div_id").click( $("#div_id").html('<img src="/path/to/image.jpg" alt="" />'); ); });