$('<p><a>jquery</a></p>')
.find('a')
.attr('href', 'http://jquery.com')
.end()
.appendTo('body')

 
Posted by altvirus
,