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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:59:51+00:00 2026-05-27T22:59:51+00:00

I have the following code when i add to the list it does not

  • 0

I have the following code when i add to the list it does not stay on the page when the browser is refreshed i am wondering is there a way around this.

<script language="javascript">
$('.example-default-value').each(function () {
    var default_value = this.value;
    $(this).focus(function () {
        if (this.value == default_value) {
            this.value = '';
        }
    });
    $(this).blur(function () {
        if (this.value == '') {
            this.value = default_value;
        }
    });
});
function example_append() {
    $('#step').append($('#example-textarea').val() + "<br />"); 
}

I would then like to be able to add to a list and have it stay on the list even after the page is reloaded.

  • 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-27T22:59:52+00:00Added an answer on May 27, 2026 at 10:59 pm

    Sorry but that is impossible, because when you refresh your page it will again parse your page from the server side script lets say php, and you are adding the elements simply by a clientside script javascript whose changes will be lost in your refresh..

    You need to have them in your initial html…or body onload you can create those items that way they will be added your body =will be loaded..:)

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

Sidebar

Related Questions

I have the following code: SPList list = web.Lists[this.ListName]; SPListItem item = list.Items.Add(); now
The following code does not have any errors when run script.py -f filename but
I have the following Javascript code add_num = { f: function(html, num) { alert(this.page);
I have the following code that I need to add an additonal object to
I have written the following code choice /m Do you want to add another
I have the following bit of code, simply: $(function() { $('a.add-photos-link').live('click', function(e) { $(this).colorbox({
I have following function in my code public List<string> GetpathsById(List<long> id) { List<string> paths
I have the following code, which is supposed to add a shared_ptr instance to
I have the following code: List<Point> xyData = new List<Point>(); for (int i =
i have the flowing code $LastModified = filemtime($somefile) ; i want to add ten

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.