I am implementing a shopping cart site. When the user add the item, it will automatically add to cart with the product name and the price as a div. the code is below
<div class="food_menu_add"><a href="#" id="ad"><img src="images/add.gif" onclick="addcart('Sliced Orange')" /></a></div>
<table id="placehold">
</table>
function addcart(name)
{
var ni = document.getElementById('placehold');
var newdiv = document.createElement('tr');
var divIdName = 'myDiv';
newdiv.setAttribute('id',divIdName);
newdiv.innerHTML = name;
ni.appendChild(newdiv);
}
When the image is clicked the <tr>
is generating. i want to post the <tr>
generated to the next page. How can i get that?. Plz help. Any help will be appreciated