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 7908103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T11:45:55+00:00 2026-06-03T11:45:55+00:00

I am a newbie for jquery and I dont know how to get the

  • 0

I am a newbie for jquery and I dont know how to get the text of an tag created using Jquery.

I want to send that value to the server using Jquery as request to get values from the database.

$(document).ready(function() {
    $.ajax({
        type: "GET",
        url: "newxml.xml",
        dataType: "xml",
        success: function(xml) {
            var name ;
            var lname;
            var email;
            var city;
            //document.write("<table>");
              var $tbl = $('#basicTable');
            $(xml).find('Details').each(function(){
                 $tbl.append($('<tr>').append(
                         $('<td>').text($(this).find('name').text()),
                         $('<td>').text($(this).find('LastName').text()),
                         $('<td>').text($(this).find('City').text()),
                         $('<td>').html("<a href='//www.google.com' >"+$(this).find('Email').text()+"</a>")
                         ));
            }); 
            $('#tableWrap').append($tbl);
            $('#basicTable').dataTable();

    }
    });

}); 
  • 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-03T11:46:09+00:00Added an answer on June 3, 2026 at 11:46 am

    use .html() instead of .text()

    hope this will help you..

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

Sidebar

Related Questions

I want to send json formatted data to jQuery.css() function, and i dont know
I am a newbie to Jquery. I am trying to send a request with
jQuery-newbie here. I want to do a simple horizontal scroll function with two buttons.
I'm a jQuery newbie, and I have trouble with a little script I created.
I'm a complete newbie as far as jQuery is concerned. I also don't know
Jquery newbie here =) so I've got a code that slides the menu divs
I'm a newbie of jQuery. Now I'm trying to intercept click login button that
I'm a complete jquery newbie, but I'm following this tutorial here to get me
I'm a newbie with jquery and i've used this code for tabs <script type=text/javascript
I'll preface this by saying that I'm a total jquery newbie. That said, I'd

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.