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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:52:59+00:00 2026-06-03T13:52:59+00:00

Possible Duplicate: Checkbox Stays Checked on Page Refresh Please see the image carefully. This

  • 0

Possible Duplicate:
Checkbox Stays Checked on Page Refresh

]

Please see the image carefully. This page is auto refresh every 20 seconds. My issue is see the bottom of the image, i have 8 check box in backup frequency group. when ever i check or un check the check box , i cant able to save the changes due to page refresh. i know i can increase the time of refresh and its possible. But i need some other logic to prevent the checked or un checked value untill i click “Applay changes” (save).
For example the 8 checkbox have 8 different id, When ever i click the id , i set the value true when its checked, other wise false. etc . please write a code in jquery or javascript.

Please come up with a working code for this doubt. Thanks in advance.

  • 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-03T13:53:02+00:00Added an answer on June 3, 2026 at 1:53 pm

    Simple and correct solution is NOT to refresh page every 20 secs, not refresh it at all. Depending on the reason for refresh you could replace it with a ajax call.

    Alternatively if you want to do it wrong way, refresh page from javascript by setting document.location say every N secs, but before changing location check if user has changed values, in that case don’t change location until user has pressed save button and hence reloaded page e.g. something like this

    user_activity = false;
    
    function refresh(){
        if(user_activity) return;
        window.location.reload()
    }
    
    $('.mycheckboxes').click(){
        user_activity=true;
    }
    
    window.setInterval(refresh, 20000);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Check checkbox checked property using jQuery I am having an issue picking
Possible Duplicate: .prop() vs .attr() Please take a look at this fiddle: http://jsfiddle.net/DGzvP/ $(#test).prop({
Possible Duplicate: php == vs === operator Reference - What does this symbol mean
Possible Duplicate: How do I write superscript word for checkbox text in java? So
Possible Duplicate: Opening url in new tab while i am doing window.open(), my page
Possible Duplicate: Checkbox size I'm trying to make some checkboxes display larger in most
Possible Duplicate: What is the “double tilde” (~~) operator in JavaScript? I found this
Possible Duplicate: How to show android checkbox at right side? In my android application,
Possible Duplicate: how to use foursquare API in android application? This is a question
Possible Duplicate: Delete values selected using checkbox I want to delete records that has

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.