I have a function which is supposed to fire onclick which is just an ajax call to retrieve some product information & output it to the page. I want to use a value passed to the function as part of the url.
function getDetails(pCode)
{
var page = "includes/details.php?pCode= + pCode &success=yes";
}
I need the value of pCode to be passed to the script in order for the right information to be retrieved but I can't seem to concatenate the string correctly. I know this is basic but I would very much appreciate a nudge.