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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:57:00+00:00 2026-05-25T20:57:00+00:00

I will try my best to explain what I wish to do and do

  • 0

I will try my best to explain what I wish to do and do correct me or question me if I did not get my question across correctly.

I have a jquery function as follows:

function processResult(xData, status) {
    $(xData.responseXML).find("z\\:row").each(function() {
        var liHtml = "<a href=" + $(this).attr("ows_Title") + "><img src=" + $(this).attr("ows_snapshot_file_location") + " width=120 height=90><strong>" + $(this).attr("ows_video_description") + "</strong><br /><br />" + $(this).attr("ows_video_description") + "<em>" + $(this).attr("ows_video_length") + "</em></a><br />";
        $("#videoplaylist").append(liHtml);
    });
}

I have a HTML code as follows:

<div id="playlist">

/*** Something to be derive from #videoplaylist ***/

</div>

Actually, I can just call the jquery function as follows:

<div id="videoplaylist"> </div>

inside the

/*** Something to be derive from #videoplaylist ***/

but what I actually want was that the code to reflect all the "lihtml" variable.

If the "lihtml" variable contain

 <em>Hello World</em>

it will display "Hello World" in the "/*** Something to be derive from #videoplaylist ***/" and not

 <em>Hello World</em>

Appreciate any insight.

  • 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-25T20:57:01+00:00Added an answer on May 25, 2026 at 8:57 pm

    I will try to interpret this as best I can.

    My interpretation:

    You have the following in your code

    <div id="videoplaylist">/* Something to be derive from #videoplaylist */</div>
    

    and then you have a block of html (<b>Something</b>) that you would like to insert there like this

    <div id="videoplaylist"><b>Something</b></div>
    

    but you are getting

    <div id="videoplaylist">/* Something to be derive from #videoplaylist */<b>Something</b></div>
    

    Is that correct?

    If so simply replace

    $("#videoplaylist").append(liHtml);
    

    with

    $("#videoplaylist").html(liHtml);
    

    The append command will only add the html to the end of the inside content. The html command will replace the complete content.

    HTH
    Alex

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

Sidebar

Related Questions

I will try my best to explain this. I have an application that show
HI, I have the following scenario which I will try to explain as best
I will try and explain this the best way I can. I have a
I will to try to explain this as best as I can. I have
I'm not too sure how to explain this, but I will try. I have
That might be broad question but I will try to explain best. I will
It's kinda hard to explain, but I will try my best. I have this
I think this may not be possible, will try and explain as best as
I will try to explain this the best I can. I created a CMS
I'm going to try to explain this best I can I will provide more

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.