I've created a web page that populates the content of a div using an AJAX request.
I'm using
$('#div_id').html(data);
to populate the div and this works fine.
However all of the returned content has lost its JQuery, no more onclick events and no JQueryUI widgets.
I've tried calling all of these
$('#div_id').trigger('create');
$('#div_id').html(data).trigger('create');
$('body').trigger('create');
and all the same with 'pagecreate' rather than create.
None of this is working although everything I've found whilst googling is related to JQuery Mobile so I could be completely barking up the wrong tree.
Thanks