html - Is there anyway to put a div value inside another one -


i have code right here:

<div> <div id="pos">hello</div> <div style="border:10px solid black; width:600px; height:840px"></div> </div> 

so want know if there way put value of div"hello" inside second div top property??????? tried position code: top:200px nothing happened.

you can use jquery selector $( "#pos" ).innerhtml html of div after can set div put class name or id identify div

like $( "#another_div" ).innerhtml=$( "#pos" ).innerhtml , after modify css. $( #another_div" ).css( "attribute","value");


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -