Sunday, March 11, 2012

How can create an Dom object in div tag?

hello,

you can drop literal control in the place where you want to view the tags then set the text property of the literal to whatever you want


Do you want to create the child div by javascript on the client side?


try this:

var divChild = document.createElement('div');

document.getElementById(''container').appendChild(divChild);

divChild.style.YourStyle = 'YourValue';

Hope this will help.


Yes ,I want to create child div by javascript on the client side ! I want to use the asp.net ajax framework code to do!


Pls check my previous post that how to create a div element and add it in another dom element.


Oh thank you very much

I have done as you say and I have understand !!

Stick out tongue

No comments:

Post a Comment