Welcome Guest, Not a member yet? Register   Sign In
how to add onclick event in anchor button?
#2

(This post was last modified: 10-05-2018, 01:06 AM by Pertti.)

You have single quotes inside a string you are trying to pass to anchor function, you need to escape these characters with \ in front of '
PHP Code:
anchor('Users/deleteFile/'.$row['markid'] .'/'.$row['appno'] ,' ' ,'class="fa fa-remove" onclick="return confirm(\'Are you sure to delete data?\')" style="font-size:25px;color:red"'
Reply


Messages In This Thread
RE: how to add onclick event in anchor button? - by Pertti - 10-05-2018, 01:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB