Add link through jQuery

by Kennethtruyers

HTML

<div id="content">This is content</div>
<div id="link">this is a link</div>

JavaScript

$(document).ready(function(){
		$("#link").click(function(){
            $("#content").html("<a href='http://www.google.com'>google.com</a>");
		} );
});