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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:09:20+00:00 2026-06-06T06:09:20+00:00

I have got two input fields which i would like to make editable with

  • 0

I have got two input fields which i would like to make editable with a button click.

The data of these two fields is to be written to database in two separate columns which can be achieved by ajax.

But i would like to know about the first part. Tried to google a lot but didnt found a viable solution 🙁

  • 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-06T06:09:26+00:00Added an answer on June 6, 2026 at 6:09 am

    jsBin demo

    html:

    <input type="text" disabled="disabled"/>
    <button class="toggle_input_state">enable / disable</button>
    

    This allows you to toggle your states:

    $('button.toggle_input_state').on('click',function(){
       var $el = $(this).prev('input');
       $el.prop("disabled",!$el.prop("disabled"));
    });
    

    You can use .prop() since jQuery 1.6.

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

Sidebar

Related Questions

I got two simple input text fields in a HTML form: <input type=text name=data[User][name]
I have the following problem: I got a view with two text fields and
basically I have two input fields, name and username. The idea is that the
I'm working on a website which handles large amounts of data. I have got
I've got two input fields, email and email_confirm. The email field has the value
I have got two tables: Event +----------+---------+--------------+ | event_id | name | date |
I've got two hard disks in my computer, and have installed Solaris 10u8 on
I've got two Activities. In one I calculate some things and therefore I have
I have got as follows: use constant ABC => ('one', 'two', 'three'); and I
I have the following problem. I got two forms on my web page. On

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.