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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:52:26+00:00 2026-05-26T06:52:26+00:00

Issues 1: $(‘#msg’).html($(‘#quote’).text()); now changed quote for a variable – quotevar: $(#msg).html(quotevar); How would

  • 0

Issues 1:

$('#msg').html($('#quote').text());

now changed quote for a variable – quotevar:

$("#msg").html(quotevar);

How would I incorporate the text function there to get the same result I did with #quote? I can’t even seem to understand how to properly handle variables and functions in jquery.

Issue 2:

I need to add [quote] [/quote] bbode tags around my variable quotevar. This is actually the reason I created the variable in issue 1.

If it’s possible to do it without the new var using this:
$('#msg').html($('#quote').text()); then I’d like to know how that is done also.

I assume the wrap() function is needed to add the tags.

  • 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-26T06:52:27+00:00Added an answer on May 26, 2026 at 6:52 am

    if I understand you correctly, are you just wanting to do this?

    var quotevar = "<quote>" + $('#quote').text() + "</quote>";
    

    or using wrap()

    var quotevar = $('#quote').text().wrap("<quote />");
    $('#msg').html(quotevar);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having issues referencing $(this) from within a the nested ajax 'success' function... I know
I'm having issues with an XSL template that is outputting to HTML. There is
My javascript is having issues with the variable posy. This is all within a
Having issues where in my .aspx page I pass in a boolean variable (C#)
Having issues attaching a Database and full text catalog from server A to server
Having issues trying to select html injected into the DOM using jquery's load. Works
I'm having issues writing a C function that reads a string from STDIN, and
Having issues with when objects are changed and when they aren't in Python. Here
What issues / pitfalls must be considered when overriding equals and hashCode ?
Eclipse issues warnings when a serialVersionUID is missing. The serializable class Foo does not

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.