I am trying to use javascript functions in a php echo statement. The showme and onclick function are being used and values must be passed in the showme function.
The code below is not working.
echo"
<ul>
<li><a href='javascript:void(0);' onclick='showme('Test','','10.70725','-61.55391','','Tester');' >$id</a></li>
</ul>
";
How do I fix this?
1 Answer