I have a table where all the data are showing and in every row there is an edit button . Now what I want is after I click on the edit button a pop up/model box/lightbox whatever you say will appear without the page refresh and then all fields will appear on that box . I know how to do update in controller and model .I just don't know how I attach a following row id to delete button and then send to the controller through ajax and then populate them in the lightbox this is what I am doing.I have a table where all the data are showing a