Possible Duplicate:
Pass a PHP string to a Javascript variable (and escape newlines)
Can anyone show me the method to pass php variable into javascript function and also javascript variable into php script.Here is the sample line i want to pass php variable , but when i am doing that function is not getting executed
echo "<td><a href='#' onclick='disp_confirm($row->university)'>Delete</a></td>";
please help me.
You need to quote the string in the onclick: