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

Code:
<?php
$actionbutton1 = $row['status'] == 'Uploaded' ? 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"'): anchor('Users/'.($row['markid']),' ') ;
?>
<td align="center"><?php echo $actionbutton1;?></td>  
it shows error. how to solve ?
Reply


Messages In This Thread
how to add onclick event in anchor button? - by kvanaraj - 10-04-2018, 11:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB