I have a PHP class in which there is a delete
function. When I click on the image I want to call delete
, but this line is not working:
echo "<img src='icon/del.gif' onClick='.delete().'/>"
I have tried using the href
tag but it doesn't work.