Home > JavaScript, jquery > Move (Copy) Div from one place to another using jQuery

Move (Copy) Div from one place to another using jQuery

Hello Friends,

jQuery is very useful while you develop any web application. Whatever you can do with jQuery is not enough, you should know much more and implement more and more with jQuery. Yesterday i need to move one of my “Pending” record to “Paid” records section once i click on selectbox and change the record to “Paid” status. I can do it by creating new HTMLand append it to paid records list. But i came to know about Clonefunctionality of jQuery. There are two possiblility in Clone function of jQuery. If you want to keep the Div at their place and create the same Div at some other place than you can go for Clone. If you want to Move the Div from one place to another than use appendTo. Look at below syntax.

$(“div#source_div_id”).appendTo(“div#destination_div_id”);
 If you find any problem in this than let me know by comment.
Advertisements
Categories: JavaScript, jquery Tags: ,
  1. nulled php script
    November 23, 2011 at 2:17 am

    I’ll right away grab your rss feed as I can not find your e-mail subscription link or newsletter service. Do you’ve any? Please let me know so that I could subscribe. Thanks.

  2. November 23, 2011 at 8:13 am

    ‘EMAIL SUBSCRIPTION’ is in the footer portion.

  3. April 16, 2013 at 10:59 pm

    Hi would you mind stating which blog platform you’re working with? I’m going
    to start my own blog soon but I’m having a hard time deciding between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design seems different then most blogs and I’m looking for something unique.
    P.S Apologies for getting off-topic but I had to ask!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: