Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7820383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T07:16:07+00:00 2026-06-02T07:16:07+00:00

element.appendTo(‘<td>’).appendTo(‘<tr>’).appendTo(‘#ordersList’) Is this supposed to put the element inside a new td element, inside

  • 0
element.appendTo('<td>').appendTo('<tr>').appendTo('#ordersList')

Is this supposed to put the element inside a new td element, inside a new tr element inside the #ordersList element (was a table)?

Because I was just getting the naked element inside #ordersList with no wrapping tr/td.

This old site I was trying to troubleshoot seems to be using jQuery 1.4.1 – in case this is a known bug.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T07:16:08+00:00Added an answer on June 2, 2026 at 7:16 am

    appendTo() returns the element you’re operating on, so what you’re actually doing is;

    1. Adding your element to a newly-created td.
    2. Detaching the element from the td and adding it to a newly created tr.
    3. Detaching it from the tr and attaching it to #ordersList

    What would work would be something like this;

    $('<td></td>').appendTo($('<tr></tr>')​​​​​​​​​.appendTo('#ordersList')).append(element);
    

    … which sucks for readability.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm cloning a list element in this way: $('ol li.menu-item').click(function() { $(this).clone().appendTo('#check-items'); }); The
So what I'm trying to accomplish is a simple appendTo a certain element. The
I have an element that is using -moz-resize CSS style. This style enables resizing
jQuery.validate errorPosition code : errorPlacement: function(error, element) { error.appendTo(element.siblings(label)); }, That code works brilliantly
how can you make an element with width 100% and padding fit inside another
Given this element: <div class=box id=trololo> <h2 class=header gradient-red></h2> <div class=body> <div class=queue> <ul
I want to push result list of autocomplete source inside ul element of jquery
I'm creating a custom drag helper (in jQuery): $('.dragme', element).draggable({ appendTo: 'body', helper :
I am trying to use jquery appendTo in order to copy an element into
I have a div element which I append to body element $('<div class=tooltip></div>').appendTo('body'); and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.