How can one use OnClick with anchor in CodeIgniter ??? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: How can one use OnClick with anchor in CodeIgniter ??? (/showthread.php?tid=52921) |
How can one use OnClick with anchor in CodeIgniter ??? - El Forum - 07-02-2012 [eluser]Maverick7[/eluser] I am trying to replace the onClick echo code with an anchor that will run OnClick... Code: <?php This code tags aren't showing code right so I attached code view. attachments aren't working either here Thanks How can one use OnClick with anchor in CodeIgniter ??? - El Forum - 07-02-2012 [eluser]PhilTem[/eluser] Code: echo anchor('#', 'Click on me!', array('onClick' => 'yourJavaScriptFunctionToPerform();')); Or do you want to have the 'onClick' attribute to your tr/td? How can one use OnClick with anchor in CodeIgniter ??? - El Forum - 07-02-2012 [eluser]Maverick7[/eluser] Yes, it's part of a for loop that gives rows and I am trying to pull up single records : ) thanks |