Question : div tags

In my application i have a div tags all of which has a Edit button.  If a user clicks on the edit button a pop up form displays where the user enters some text which is returned to the Div tags innerhtml. The problems is that after the innerhtml text is returned the edit button no longer apears.

Perhaps, i need to increase the size of the div? If so, how would i do this? Or, is there something else.

Answer : div tags

It's because innerHTML change whole content of the div.

<div id="whatever">
edit button
</div>

and you change html of whatever, you will rewrite the edit button.
Try this

<div id="container">
<div id="whatever"></div>
Edit button
</div>
So you'll change only the div whatever and edit button will stay.

I hope I did understand what you need.
Random Solutions  
 
programming4us programming4us