I am working on School time table management, my plan is like this. 

I made a table, in each cell there is a link "assign". If I click that bootstrap modal will appear, in that I will select subject and teacher name. After that I will make some db operation, after that I want teacher name and subject to display on the same cell. 

After displaying subject and techer name, the cell should have small close button on top rightside. So this is my plan. 

I completely able to do bootstrap modal. After that I am not able to do so. 

Can anyone give some idea about how to make a cell editable. Suggest me some link to refer please.