Hi guys, I show a table with mysql data with an edit option/link for each record, but i want the edit link to call a jquery function onclick and it must pass the $ec_arr[4] as the argument/parameter which is the id of the record in the mysql table to JQuery. how can I do this please...?
<table border="1"> <tr> <td>Fullname</td> <td>Relationship</td> <td>Contact number</td> <td>Residential address</td> <td> </td> </tr> <?php foreach(get_emergency_contact_fields($var) as $ec_arr): ?> <tr> <td><?php echo $ec_arr[0] ?></td> <td><?php echo $ec_arr[1] ?></td> <td><?php echo $ec_arr[2] ?></td> <td><?php echo $ec_arr[3] ?></td> <td><a href="#">Edit</a> </td> </tr> <?php endforeach; ?> </table>