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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:46:56+00:00 2026-06-07T18:46:56+00:00

I try to append some data to a dom element using both $(#slider-hide).append(some text);

  • 0

I try to append some data to a dom element using both

$("#slider-hide").append("some text");

and even

document.getElementById("slider-hide").innerHTML += "some text";

but the text is not visible until i perform a browser search for it and once i perform the search it is permanently visible …
It is not a css issue

I have tested in both chrome and safari and it gives me the same issues.

heres the full function

$("#expand").click(
                function()
                {
                    $("#right_arrow").hide();
                    $("#left_arrow").hide();

                    var ht = document.getElementById('graph-div').offsetHeight;

                    $("#graph-div").animate({height:ht*numberOfSlides},"slow");
                    currentPosition = 0;
                    $("#energy_tag").html(orders_arr[currentPosition]);
                    $(".highcharts-legend").hide();

                    var item1 = $("#business-chart").html();

                    $("#slider-hide").append("fasfdsafdsafdsafdsfdsafdsafdsafdsafds");
                    document.getElementById("slider-hide").innerHTML += "some text";
                }
            );

EDIT:
Here’s the concerned html div

<div class="content_boundary" style="background-color:#e3e3e3" >
  <h2 style="text-align:center;font-size:20px;" id="energy_tag" class="tab_first_col">Energy</h2>
  <div style="position:relative;" id="graph-div">
    <a href="#" class="control" id="left_arrow">
      <img  src="stylesheets/images/arrow_side_normal_left.png" style="position:absolute;top:100px;left:10px;"></img>
    </a>
    <div class="slider-hide" id="slider-hide">
      <div id="business-chart" class="orders-by-busines"> </div>
      <div id="business-chart1" class="orders-by-busines"> </div>
      <div id="business-chart2" class="orders-by-busines"> </div>
      <div id="business-chart3" class="orders-by-busines"> </div>
      <div id="business-chart4" class="orders-by-busines"> </div>
      <div id="business-chart5" class="orders-by-busines"> </div>
    </div>
    <div class="clear"></div>
    <a href="#" class="control" id="right_arrow">
      <img  src="stylesheets/images/arrow_side_normal_right.png" style="position:absolute;right:10px;top:100px;" ></img>
    </a>
  </div>

Screen shot

enter image description here

  • 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-07T18:46:58+00:00Added an answer on June 7, 2026 at 6:46 pm

    Working code: http://jsfiddle.net/wPdWF

    When I first ran your code I was getting undeclared variable errors on numberOfSlides and orders_arr. The exact lines it errors on are:

    $("#energy_tag").html(orders_arr[currentPosition]);

    $("#graph-div").animate({
            height: ht * numberOfSlides
    }, "slow");
    

    When I declared test values for those two variables the append code was working fine. Where do you declare the above variables in your code?

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

Sidebar

Related Questions

I'm using matplotlib at the moment to try and visualise some data I am
I have problem when I try insert some data to Informix TEXT column via
I'm trying to read a file then append some text to a certain place
I am using a text file that stores 3 columns of data, each having
Here is my class where I try to get into a JSONArray some data
I have a GUI application that process some data, it converts line of text
I'm using Apache Commons HttpClient to grab some data from a server. My problem
Im trying to append some JSON data from the last.fm API, I have been
Im trying to append some JSON data from the last.fm API, I have been
I am trying to populate a text box with some data, namely the names

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.