html tr onclick to call controller function - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: html tr onclick to call controller function (/showthread.php?tid=64311) |
html tr onclick to call controller function - rchiu5hk - 02-05-2016 I am using html php of codeiginter and javascript in my web site. Now I have records list in html table tr. If I click on the row, i want to trigger the action of the controller path to update db with passing record id on this row. Could you help me to instruct how to do?? Does it need ajax or any code?? RE: html tr onclick to call controller function - Bhavesh - 02-05-2016 Hi You can write something like below: Code: <table> |