I am having issues getting my CSS back when I append results from my database.
Here is my function:
function querySuccessOrders(tx, results) {
console.log("Successful QUERY of the orders Table");
var len = results.rows.length;
console.log("orders table: " + len + " rows found.");
for (var i=0; i<len; i++){
$('#acceptedOrdersContent').append('<li><a href="#CompleteOrderInfo'+results.rows.item(i).OrderID+'">'+results.rows.item(i).OrderID+'</a></li>');
}
}
The issue is that I am losing the formatting so the list item no longer links to anything (it's not clickable). I have tried to add the .page()
to the end and that is not working. Can anyone show me how to add the style sheet back to the new stuff that I append from the database?