Hi all iam working on jquery here i have a html page in the html i have two div's in those first div contains image name and price right now we have to move image to another div which is empty div here i had done to move image form first to secound working well i need to move as well as name and price also
this is my html :
<div id="div1">
<span class="span1">
<img src="~/Images/images.jpeg" />
</span>
<span class="span1">1232</span>
<span class="span2">Cell Phone</span>
<span class="span1">3500</span>
<a href="#" class="pull-right"><i class="icon-plus" onclick="AddToCart(this)" ></i></a>
</div>
<div id="div1">
<span class="span1">
<img src="~/Images/images.jpeg" />
</span>
<span class="span1">1232</span>
<span class="span2">Cell Phone</span> <span class="span1">3500</span>
<a href="#" class="pull-right"><i class="icon-plus" onclick="AddToCart(this)" ></i></a>
</div>
actual price<input type="text" id="text1">
total price<input type="text" id="text1">
this is my another div
<div class="span7" style="border:1px black" id="separate">
<ul class="thumbnails bootstrap-examples pre-scrollable">
<li class="span2">
<a href="#" class="pull-right">
<i class="icon-remove" onclick="AddToCart(this)" >test
</i>
</a>
<a href="#"></a>
<h5>Starter template</h5>
<p>500</p>
</li>
</ul>
</div>
here in the above i have icon-plus is the image button it's workin when i click the button the image is moving to destination folder i need to move name and price also and in the same time i have two text boxex the price shold add when user select the two images
this is my jquery
function AddToCart(obj) {
}
function AddToCart(obj) {
var $this = $(obj).closest('div');
var img = $this.find('img');
$('#separate').append(img);
}