When I load a DIV with content from a callback that contains multiple HTML elements, each with their own associated classes, the styles are not appearing correctly after using .append.
$.ajax({
type: "GET",
url: "blah.xml",
dataType: "xml",
data: myData,
success: function(xml) {
$(xml).find('item').each(function(){
var id = $(this).attr('appId');
$('<li><h5 class="thing">' + id + '</h5>').appendTo('#results');
});
}
});
Even though the class "thing" is present, it is not being rendered after setting the ID in an H5 tag and appending it to the results DIV. Any suggestions for fixing this issue?
Any thoughts or insights would be greatly appreciated.