function redirect(id){ alert(id); document.forms[\"AddToCart\"].submit(); }
This is my javascript. How can i pass the value of \'id\' into AddToCa
You can store the value in a hidden field inside your form and so when the form is submitted the value will be sent to Action.
... .....
then
function redirect(id){ document.getElementById('myid').value = id; document.forms["AddToCart"].submit(); }