Div on other div with jQuery

miriamgoose

New Member
\[code\]<div id="one">aaa</div><div id="two">bbbbbbbbbb</div><span id="click">click</span>\[/code\]FIDDLE: http://jsfiddle.net/g6Myb/how can i get #two and put him on #one with jQuery after click span#click?\[code\]<div id="one">aaa</div><div id="two">bbbbbbbbbb</div><span id="click">click</span>\[/code\]\[code\]#one {width: 200px; height: 200px; background-color: red}#two {width: 200px; height: 200px; background-color: green; opacity: 0.3 }\[/code\]\[code\]$('.click').click(function(){}) // what to do here ?\[/code\]
 
Back
Top