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

  • Home
  • SEARCH
  • 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 1057211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:49:53+00:00 2026-05-16T17:49:53+00:00

I am creating <td> and adding data to it. $(<td>).addClass(tableCell1).text(mydata).appendTo(trow); now if I have

  • 0

I am creating <td> and adding data to it.

$("<td>").addClass("tableCell1").text(mydata).appendTo(trow);

now if I have to create an <a> tag inside how to do it?
example:

<td headers="xx">
                  <a href="#" title="zz</a>
                </td>

EDIT:

$("<td>").addClass("tableCell1").text(mydata).appendTo(trow); 

is working fine but

$('a').attr({ href: '#', title: 'title here' }).appendTo($('td')).appendTo(trow); 

is not working, I am not getting the <a> under <td>

  • 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-05-16T17:49:54+00:00Added an answer on May 16, 2026 at 5:49 pm

    I am assuming that you’re trying to create the <a> and the <td> at the same time. If you’re trying to add the <a> at a different event, you would need a different solution.

    $("<td/>",{"class":"tableCell1", text:mydata})
        .append($("<a/>",{ href:"#", title:"zz"}))
        .appendTo(trow);
    

    Note that you didn’t indicate any content for the <a> in your question. If not styled properly, it will be invisible. If you want to add some text, add text: "some text" to the <a> creation.

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

Sidebar

Related Questions

I have mastered creating custom data types and adding fields with CCK. Then I
I'm creating NSMutableRequest and adding data to body. Heres example how I do it:
I am creating an application. I have to implement a bookmark feature, and adding
I have been tasked with creating an API for retrieving and adding content to
I am creating a meta data class for a POCO object. I am adding
I'm creating some UILabels in my UIView , filling them with data, adding them
I am using a text file to have some data there for later purposes.
I have a program that is responsible for reading data, formatting it and creating
Dynamically I am creating the linear layout and adding the views to linear layout
I am creating a Rails plugin and it is dynamically adding a method to

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.