I am using a onclick function that stores a character in
$itemid=1;
$storeid=3;
$status='rejected';
<a class="blue" href="javascript:void(0);" onclick="status('.$itemid.','.$storeid.','.$status.')" >
But right now it shows an error in firebug
rejected is not defined
status(1, 3, rejected);
My feeling is that it should pass the string – rejected as
status(1,3,'rejected')
I have tried to represent the function as shown below
onclick="status('.$itemid.','.$storeid.','".$status."')
but its not working… Can any one suggest a solution for this please..
This should work (note the backslash to escape the quote)