I have a live event for elements added by an $ajax ({}); call.
e.g.
$('.myClass').live("click", function() {
}
After the ajax call:
$('#myElementId').html(data);
$('#myElementId').trigger('create');
Then the click event for nyClass elements does not work. Remove "$('#myElementId').trigger('create');" and everthing's fine except for formatting ofcourse.
I found a workaround by creating:
$('.myClass').click(function() {
}
in the ajax success handler. Anyone recommed a better way?