Im trying to code a jQuery UI dialogue dynamically but with an image in the title, however my dialogue just shows the code instead of the image:-
My code is currently:-
var tag = $("<div title='test'></div>"); //This tag will the hold the dialog content.
title: '<img src="refresh.png" />'
According to the documentation I can just include the html code so it should work fine.
Any ideas what Im doing wrong?