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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:35:41+00:00 2026-05-29T06:35:41+00:00

Possible Duplicate: jQuery: text() vs html()? What’s the difference between text and html() in

  • 0

Possible Duplicate:
jQuery: text() vs html()?

What’s the difference between text and html() in jquery?

  • 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-29T06:35:42+00:00Added an answer on May 29, 2026 at 6:35 am

    Unlike the .html() method, .text() can be used in both XML and HTML
    documents. The result of the .text() method is a string containing the
    combined text of all matched elements. (Due to variations in the HTML
    parsers in different browsers, the text returned may vary in newlines
    and other white space.)

    Source: http://api.jquery.com/text/

    This answer was clear from the API docs, though.

    If you are ever curious how one or another function works, head to http://api.jquery.com/[function-name]. If the answer is not in the main text, look through comments. If you haven’t found your answer yet, spend at least 2 minutes using Google. If you haven’t found your answer yet, ask in stackoverflow.

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

Sidebar

Related Questions

Possible Duplicate: jQuery $(this) vs this When using jQuery, whats the difference between this
Possible Duplicate: Tab behavior using jQuery Imagine that there are many text boxes in
Possible Duplicate: jQuery bind click ANYTHING but ELEMENT I have this HTML <div id=outer>
Possible Duplicate: jQuery delay between animations I have created two functions: One that animates
Possible duplicate: jquery change div text The above question is a possible duplicate, but
Possible Duplicate: Detect all changes to a <input type=text> (immediately) using JQuery I have
Possible Duplicate: jQuery select based on text I have something like this: <span>abc</span> <span>a</span>
Possible Duplicate: jQuery change input type How to replace input[type=submit] to input[type=text] using jQuery?
Possible Duplicate: changing password field to text with checkbox with jquery The code is
Possible Duplicate: Submit a form using jQuery $('#form') Supposed the jQuery Object of the

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.