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

(10-05-2018, 04:18 AM)qury Wrote:
(10-05-2018, 04:09 AM)kvanaraj Wrote: first see my post. i am not asking in normal . my doubt is doing in anchor function .

How about re-formatting your anchor like this?
PHP Code:
  <?php
        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'
 
           ]
 
       );
 ?>
Mr Pertti  already answered my post.
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB