I have tried all the post of stack overflow and from google but none of those seem to work for me. This is my php code:
echo $firstPar;
echo $secondPar;
$tab_str.="<td width=\"20%\"><a href=\"#\" onclick = \"functionCall(".$firstPar.", ".$secondPar.")\" class=\"previous round\">‹</a>";
This is the Javascript code:
function functionCall(firstPar, secondPar) {
alert(firstPar);
alert(secondPar);
}
If I am passing string values directly on the php call rather than passing the variables, I am getting the values inside the function. But the variable values are coming as null. Whereas the echo displays the variable values.
's and then you can leave the inner"s without escaping