I am trying to write a function that will call getproduct.php?id=xxx when clicked. I can get the innerHTML portion to appear, but how do I also call t
getproduct.php?id=xxx
innerHTML
You can use get or post request using query
$.ajax({ type: "POST", url: url, data: data, success: success, dataType: dataType });
example