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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:45:54+00:00 2026-05-30T00:45:54+00:00

I have a small .get() that receives a block of HTML from a php

  • 0

I have a small .get() that receives a block of HTML from a php file (the file renders the code so that it will pass as plain HTML). All of the code is coming in, but it isn’t behaving as I had expected.

I’m using Yahoo Tabview, and if I copy and paste the same HTML code into the HTML section of my .html file, everything is shows up and tabs correctly, but when I bring it in through the .get() function all the code is applied to every tab’s content area.

Here’s my .get() function:

$.get('index.php', function (serverResponse) {
    $('.yui-content').append(serverResponse);
});

Does jQuery add anything to the code or cause it to act differently that if you copy-and-paste it into the file?

Let me know if I need to include any other code…

  • 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-30T00:45:57+00:00Added an answer on May 30, 2026 at 12:45 am

    The problem is because you are using a class selector – which I assume is on more than one element. I can’t give you a definitive answer without seeing your HTML, but if you change the jQuery append() to use an Id selector (example below), it should work correctly.

    $.get('index.php', function (serverResponse) {
        $('#first-tab').append(serverResponse);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have small utility that does some processing on a file and changes the
I have small HTTP server script that receives HTTP client requests and replies. I
I have a small client/server app that sends/receives UDP discovery packets. When a UDP
I have a small Django project I received from a friend. The code works
I'm making a webcam app that sends and receives small images. I have made
I have been making several projects to compile small SDL code tutorials from a
I have a small video site where I want to get related videos on
I have small web app that generate PDF files as a report. I'm trying
Using Grails and CXF, I have published a small web service that looks like
I am working on a small perl program that will open a site and

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.