[eluser]Unknown[/eluser]
Hello,
I have below anchor tag and I want to use anchor() function from url helper. Here I don't have href attribute, I want to use with onClick function, it is working fine
Code:
<a style="cursor:pointer;"><?php echo $advertiser['companyName']; ?></a>
Now I am converting above code using anchor() function, it want work
Code:
<?php echo anchor('',$advertiser['companyName'],array('onclick'=>"expandArea('$rowcount')",'style'=>'cursor:pointer;')) ?>
OR
Code:
<?php echo anchor('#',$advertiser['companyName'],array('onclick'=>"expandArea('$rowcount')",'style'=>'cursor:pointer;')) ?>
Can I have help on this? Thanks in advance.
---Amit