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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:49:51+00:00 2026-05-24T20:49:51+00:00

How do I create an edit dialog box using jquery? Let say I have

  • 0

How do I create an edit dialog box using jquery? Let say I have a html table full of data, and if I click on a button on a row, it will display the data on that row into a jquery dialog box.

I am able to create a dialog box to add data and to remove data, but to edit data and populate the textboxes on the jquery, I am really out of idea.

  • 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-24T20:49:52+00:00Added an answer on May 24, 2026 at 8:49 pm

    You can have a edit button in the last cell of each row

    <input type="button" calss="edit" value="Edit" />
    

    On click of this button get all the cells data of this row and pass it to dialog box.

    $("input.each").click(function(){
    
      var tr = $(this).closes("tr");
      var data = [];
      tr.find("td:not(:last)").each(function(){
         data.push($(this).text());
      });
    
      //Here open the dialog box which will have the required fields and using the above data array populate the data fields as required
    
      //Lets say the first column in the table is for "Name"
      //You can populate the input "Name" field in the dialog box as.
      $("input[name=Name]").val(data[0]);
    
      //Similarly populate all the data fields using data array
    
    });
    

    The dialog box will also have a Save button on click of which it will update the cells of the current row with edited data.

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

Sidebar

Related Questions

Morning. I have a form which is rendered inside of a jquery dialog box
I have an MVC3 application doing AJAX edit of a grid line using JQUERY
I have a dialog box that the user inserts various data through gui controls,
I'm using CreateWindowEx() function to create an EDIT window, i.e. where a user can
If you create a simple button and then choose Edit Template -> Edit a
I want to display font dialog box in my web application(asp.net). Im using the
Is there a way to create a modeless dialog box in C++ MFC which
I am trying to create a simple dialog in MFC using Visual C++. My
We have an MS Access 2007 database with a simple form displaying table data.
i want create one simple windows form ,it just contain Editcontrol(textbox),Static Edit(label),Button (Name of

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.