I found this answer, which is great. But what If I also have to wrap another element around that element? This is how I’m doing it now:
$('#screenshots').append($('<a href="' + link + '" title="' + title + '"><img src="' + el + '" alt="" width="200px" height="200px"></a>'));
Is there a better method of doing it this way?
jQuery not needed.