I'm new to this, but I have tried for 2 hours on every page and example possible....
<script type="text/javascript" src="jquery-1.10.1.min"></script>
<script type="text/javascript">
function UpdateCart(itemid,todo)
{
$.get("updatecart.php?itemnumber=" + itemid + "&todo=" + todo);
}
</script>
I have an html element to trigger the above code on click:
<a href='javascript:void(0)' onclick='UpdateCart("60813","remove");'>Remove Item</a>
For the life of me, i can't get it to work... When I try it with regular ajax coding, it works, but i'm trying minimize code. also, I have tested the updatecart.php manually with url variables and it works fine and does what it should.