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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:34:33+00:00 2026-06-11T08:34:33+00:00

I have a table of inputs which I activate and deactivate on double click.

  • 0

I have a table of inputs which I activate and deactivate on double click. Now this inputs are pre-populated with some data from DB. Because the user have to press a button in order to update the DB once they double click an input and change, I would like to store the value of the input just in case the user decides to click another cell after changing without pressing the button I can then replace the value that was not sent for the original. I am using jquery to do this attr toggle to change the inputs readonly but my knowledge in jquery is limited in order to achieve what I want.Here is some example code

Thanks

  • 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-11T08:34:34+00:00Added an answer on June 11, 2026 at 8:34 am

    If I understand the question, you’re looking to store data before a user modifies it, and bring the data back if the user doesn’t save the changes they make.

    If I understood the problem correctly, I would use $.data() to maintain the old values. It essentially lets you keep key-value pairs in an html element, so it’s fairly easy to keep a string backup for an input. Add this to dblClick to backup the value:

    $input.data("backup", $input.val());
    

    And add this to return it to the original value:

    function backup ($input) {
      $input.val($input.data('backup'));
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tabled data in which most of the cells are text inputs or
I have an iPhone app which has a Table View-based data input screen with
I have an online dictionary. All inputs are saved in table id-word-unixtime. Now I
I have a table with some rows and inputs inside them. I want add
I have a table which has a button to Add Rows. This button adds
I have a form that creates inputs in a table row. I have now
I have a table displaying results from a database, and I am adding some
I have a large table of text inputs for which a set of custom
I have folliwing PHP file which is creating this table: Table createb by PHP
I have a table and I want from user add rows which who want.

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.