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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:53:01+00:00 2026-05-23T13:53:01+00:00

I am trying to replace some div text automatically using the .html command in

  • 0

I am trying to replace some div text automatically using the .html command in Jquery but it’s not working for me. This is the code I have so far:

    <div id="test">123</div>

    <script type="text/javascript">

    jQuery(document).ready(function(){

    var refreshId = setInterval(function()

    {

    $('#test').html("test");

    }, 1000);


});

</script>

Could someone tell me what I’m doing wrong please? I have ran tests to make sure Jquery is working and it is, and if I run alert(‘test’); then that works fine.

Thanks for any help

Edit: I have ran the script in another file on localhost and it works fine – could it be something within the code I’m using already that’s stopping it from working? This is baffling me!

  • 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-23T13:53:01+00:00Added an answer on May 23, 2026 at 1:53 pm

    When I have problems like this it’s usually due to some javascript/jquery prior to this part which is incorrect.

    If you can, try proofing or commenting out some other parts of your code to see if you can make it work.

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

Sidebar

Related Questions

Trying to replace this jquery code with some php server side magic: $(document).ready(function() {
Hi Im trying to replace some html with Jquery, this is what I got
For the example, I'm trying to replace <script type='text/javascript'>some stuff</script> with: <div type='text/javascript'>some stuff</div>
I'm trying to use this code to replace spaces with _, it works for
I am trying to replace strings in brackets in some html string. When I
I'm trying to replace all instances of a word, say foo between some HTML
I'm trying to replace everything between 2 tags, but I'm not able to build
I am trying to modify the output stream to search/replace some XHTML tags returned
Using the .NET framework, I'm trying to replace double slash characters in a string
I'm trying to make a sIFR text appears when hovering on a div, with

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.