Possible Duplicate:
jQuery Mobile does not apply styles after dynamically adding content
I'm wondering if I am missing something here...
If I write
<a onclick="deleteThis()" data-role="button" data-theme="a">Button text</a>
within the body of an HTML page it works fine. But when I programatically try and add new buttons using the following :
$('.block').append('<a onclick="deleteThis()" data-role="button" data-theme="a">' + results[i].Title + '</a>');
The link is appended fine just with no JQuery mobile styling, data-theme="a" should apply a particular colour swatch css to the element in question.
Where am I going wrong?