I have an HTML table with three rows in...
Alex
Bill
Charles
I have designed an interface for editing. The idea is to click a name which turns into a form field within the table, pushing enter after typing will update the database and change the data from a form field back into text.
I have got a pretty good idea of what I need to do but one problem I think I will have is if someone clicks on Alex, then Bill there will be two form fields on screen which will look a bit untidy. What's the best way of preventing this?
Should I either:
a) Check that all rows are displaying normally and then turn just one div into a form (inefficient I think)
or
b) Somehow remember if a row has been clicked on and if another one is clicked on then return the previous one to its previous state? If so what's the best way of doing that?
Thanks very much!
Ed
Alex
Bill
Charles
I have designed an interface for editing. The idea is to click a name which turns into a form field within the table, pushing enter after typing will update the database and change the data from a form field back into text.
I have got a pretty good idea of what I need to do but one problem I think I will have is if someone clicks on Alex, then Bill there will be two form fields on screen which will look a bit untidy. What's the best way of preventing this?
Should I either:
a) Check that all rows are displaying normally and then turn just one div into a form (inefficient I think)
or
b) Somehow remember if a row has been clicked on and if another one is clicked on then return the previous one to its previous state? If so what's the best way of doing that?
Thanks very much!
Ed