copy paste webpage content from webpage to webpage

Posted by Shoab.Shah under jQuery on 6/13/2012 | Points: 10 | Views : 1278 | Status : [Member] | Replies : 5
Hi all,
i have got the following task.
there is gonna be a webpage wherein there will be 2 divs. 1st div will have all html content in it.
there will be another div which is blank.
user will select some of the content from 1st div and paste it into another div.
how is it possible?
thanks in advance.




Responses

Posted by: Sabarimahesh on: 6/14/2012 [Member] Bronze | Points: 25

Up
0
Down

Copies From one div to another

$("#id_target_div").html($("#id_source_div").html());


Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

Shoab.Shah, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sabarimahesh on: 6/14/2012 [Member] Bronze | Points: 25

Up
0
Down

To Move the Content

http://www.dotnetfunda.com/codes/code2658-move-to-target-div.aspx

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

Shoab.Shah, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sabarimahesh on: 6/14/2012 [Member] Bronze | Points: 25

Up
0
Down
To move the Child of source div to target div

http://www.dotnetfunda.com/codes/code2659-move-the-child-of-source-div-to-target-div.aspx


Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

Shoab.Shah, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sabarimahesh on: 6/14/2012 [Member] Bronze | Points: 25

Up
0
Down
Clone The Div to Another Div

http://www.dotnetfunda.com/codes/code2660-clone-the-div-to-another-div.aspx

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

Shoab.Shah, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sabarimahesh on: 6/14/2012 [Member] Bronze | Points: 25

Up
0
Down
Check it ...

I think this might be useful

if it is please Mark As Answer

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

Shoab.Shah, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response