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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:12:12+00:00 2026-05-27T15:12:12+00:00

In my application the user opens up a grid and selects an option. After

  • 0

In my application the user opens up a grid and selects an option. After the user selects the option if they click on the “Add question” button then it will add a new row in the table showing the option value in the textbox.

Now lets say the user changes their mind and wants in the table row they have added they wanted to change their option value, the user can open the grid by clicking on the “Open Grid” link within the table row and select another option. The only problem is that the option they have chosen should be displayed in the textbox with in the table row but it isn’t, instead it appears on the top textbox where the user originally selects an option.

So how can I get it so that if the user changes an option within a table row, that the value is displayed in the textbox within the row and not the textbox in top?

Steps to follow in my fiddle to help you:

  1. Open the grid and select option “3”

  2. click on “Add Question”, you can see a new row has been added showing the option you have chosen in the textbox

  3. Now in the new row you have added click on the “Open Grid” link and select option “5”. Now as you can see the text box in the table row still states “3” but if you look at the textbox on top, it shows “5”. The textbox on top should not change to “5”, it should be the textbox with in the table row.

Use the jsfiddle so you can see what I mean and you can use it to test your ideas, click here

  • 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-27T15:12:13+00:00Added an answer on May 27, 2026 at 3:12 pm

    First of all, you don’t have to hide a set of matched elements after fading them out.
    Referring to:

    $('body').on('click', function() {
        $('#optionTypeTbl').fadeOut('slow');
        $('#optionTypeTbl').hide();
    });
    

    Then I personally think the code could be better. You basically have the options table as a fixed element. But you actually could also remove it as it ends fading, of course still having it in a variable within your script, and append it as the user clicks on [Open Grid] to somewhere appropriate. (I still haven’t gone through your entire code so I can’t provide a sample right away. Give me some time on that.) Then, instead of using

    $('#optionTypeTbl input').click(function() {
        $(".gridBtns").removeClass("gridBtnsOn");
        $(this).addClass("gridBtnsOn");
        // THIS FOLLOWING LINE
        $('.box INPUT').val($(this).val());
        $('#optionTypeTbl').hide();
    });
    

    since you have now made your options table a child of the parent of the clicked [Open Grid] link, you can refer to its parents by using closest like this:

    $( this ).closest( 'tr' ).find( '.box input' ).val( $( this ).val( ) );
    

    To be honest, I couldn’t solve your problem without changing great parts of your behavior. I’d need a little time to fix you my version of the code.

    EDITH:

    Okay, so I’ve worked on your fiddle and came up with a working snippet. Here you go!

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

Sidebar

Related Questions

Problem arise when user opens multiple window. In my application say when user click
In my application when a user clicks on a button I want to open
I have made an application that gives the user the option to open up
In my application user can add there reminder for the specific day and reminder
I wanted to have a popup window when the user opens the application for
Scenario: Apache Wicket based web application running on Tomcat server. User opens URL in
How to implement pessimistic locking in a php/mysql web application? web-user opens a page
After the user enters his / her license key, my application activates itself with
Our Swing application doesn't limit the number of application instance user opens that is
i am new to android programming.i looking to make a question and answer application.in

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.