1

I wrote a code that will reload a div without refresh the page, like this:

$("#content").load(" #content");

It works but the CSS I have on its contents changed. Is there a way I could load this and still have my style sheet effective on it?

1 Answer 1

1

The setInterval() method calls a function or evaluates an expression at specified intervals (in milliseconds).

Tip: 1000 ms = 1 second.

  setInterval(function_name(), 1000);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.