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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:52:34+00:00 2026-06-04T13:52:34+00:00

I just wrote this code to use a slide to toggle a box as

  • 0

I just wrote this code to use a slide to toggle a box as hidden/displayed using a button:

jQuery("#button").click(function () {
    jQuery('#box').slideToggle('fast');
});

I want to implement cookies on this to remember if the box was hidden or visible. Can someone guide me with this?

  • 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-04T13:52:41+00:00Added an answer on June 4, 2026 at 1:52 pm

    There is a jQuery Cookie plugin available, which will make reading and writing to and from cookies a lot easier and more convenient. Here is an example:

    // if the slider is visible, set the cookie slider value to true
    $.cookie('slider', 'visible', { expires: 7, path: '/' });
    

    To read the value, use the following as an example:

    var sliderVisible = $.cookie('slider');
    

    More information can be found on the jQuery Cookies Plugin Site.

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

Sidebar

Related Questions

I'm just wondering if there is a best case to write this code: $('#set_duration_30').click(function(event)
I just wrote this code to generate an image <?php $canvas = imagecreatetruecolor(800, 350);
I have the below jQuery code: $(document).ready(function () { $('#ajaxButton').click(function () { $.ajax({ url:
This is just a question on how to write my code for a COM
I just wrote this into my WebForms .aspx: <span id=GenerateChartButton runat=server></span> I went to
I wrote a program to solve a complicated problem. This program is just a
I just wrote some code to test the behavior of std::equal, and came away
I just wrote a stored function to calculate the working days between two dates.
I'm trying to parse a JSON string using the json library. This code works
I might be insane to write this here, but I am just too scared

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.