Welcome aboard! We are happy you are here and wish you good net-raft!
<a href="#" id="ahref1"></a> 
$(document).ready(function(){
$("#ahref1").attr("src","
});
this works for me too
$(document).ready(function(){
$( ".image" ).append( "<p>Text</p>" );
}); 
but when use a image you need to use prepend
$(document).ready(function(){
var image = "<img src='/image.jpg'>";
$("#prependimage").prepend(image);
}); 
The most helpful JQUERY solutions