I'm working in building an Jquery mobile application, in that I had created a table, I need to update that table rows from DB.
This is my html...
<table style="width:100%;" id="cart_table">
<tr>
<th>Item</th>
<th>Qty</th>
<th>Price</th>
<th>Delete</th>
</tr> </table>
i called a showall() method to show all cart items in it when the cart button is clicked ..
var row = ('<tr><td align="center"><a>'+cartitem1+'</a></td> <td align="center"><a>'+cart_qty+'</a></td> <td align="center"><a>'+cart_price+'</a></td><td align="center"><a><img src=""/></a></td></tr>');
$("#cart_table").html(row.html());
This will be in for loop.I had put one row for sample .. Help me to update my row dynamically