roscoe14smith
New Member
i am newbie in code igniter. actually i have a table where data is showing . in each row there is an edit button. i want from user that if he clicks the edit button a modal popup will pop up and then he is able to edit it .. now what my problem is i dont know how to i attach a link of my controller behind the image so i can send the row id to the controller as i have already in href tag i link my image(Edit) to the modalpopup .. so how i can i perform both the operations at the same time ..this is my link in form view ...as you can see in href tag i link it to the myModal where after click edit form is display..but i want that edit form will display against the row so i have to link it to the controller .. which i dont know how to attach to links to the image or there is an other way ?\[code\] <a data-toggle="modal" href="http://stackoverflow.com/questions/14417085/#myModal"> <img src="http://stackoverflow.com/questions/14417085/images/32/edit.png" alt="Edit"></a></td> <div class="modal hide" id="myModal"> //here all the form fields are displaying\[/code\]