views:

56

answers:

1

I have a div tag with runat="server".
with another div tag which is added dynamically. eg:

<div id="div1" runat="server">
<div></div>--this div tag is addded dynamically</div>

what i observed is that i am not able to remove the div tag if i add it dynamically... closing div tag(</div>) is not rendering. if its a static div i am able to remove that.

Please let me know.

A: 

If the inner div cannot be removed, the problem would be with your selector or timing. If it was dynamically added on the server, it definitely would be the selector. If it was dynamically added on the client, it could be either the selector or a timing issue (when was it created?).

Patrick Karcher