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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:22:03+00:00 2026-06-12T20:22:03+00:00

I have a test application here which you can use: Please follow steps below

  • 0

I have a test application here which you can use:

Please follow steps below in order to use the app: Application

1. Open the application and you will see that “Total number of Marks
Remaining” is 20. Click on the “Add Question” button, this will
append a row underneath.

2. Now within the appended row you will see a text input. Type in the
number 10 in the text input and click away. You will see that the
“Total number of Marks Remaining” has changed from 20 to 10 which is
correct (20-10=10)

3. Now within that same row there is a green plus button, click on this
button and a modal window will appear with a search bar inside.

4. In the search bar type in 2+2 an then enter the search. A row will
appear where under the “Number of Marks” column it shows the number
5, Click on the “Add” button to add the row.

5. This is where the problem is, you will see that in the appended row
it says in the text input “5” but if you go back to the top it still
says “Total number of Marks Remaining: 10”. This should change to 15
as 20 – 5 = 15. But it does not change.

My question is that after the user has added a number into an appended row, how can I get the total marks number to change? Is it because I am using the “OnChange” attribute?

Below is a jsfiddle where it shows the whole code: (Jsfiddle is not a working example, it is just there so you can see the whole code):

http://jsfiddle.net/WZKrP/2/

  • 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-12T20:22:04+00:00Added an answer on June 12, 2026 at 8:22 pm

    On the “add” button in the modal window, you’re calling parent.addwindow(key_0,'5','1','A-D','Single','A'); but the function addWindow() in your javascript only has 1 parameter: addwindow(textWeight)… Youy are sending 5 parameters.

    The function is being called correctly, you’re just not doing anything with the data.

    this is what you’re sending to the function

    enter image description here

    Edit after comments

    use $(plusbutton_clicked).closest('tr').find('input.txtWeightRow').val(textWeight).‌​trigger('change'); to trigger the change

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

Sidebar

Related Questions

I have a jsfiddle application which you can access here . Now when you
I have created small test web application which makes use of LINQ to SQL.
I have a very simple application test in which I want to drag and
I am trying to create a sample app for Android which can have push
I have a simple test application (C# console application) that does an HTTP GET
I have my new macbook air. I have created one test application. now i
I have made a simple test application for the issue, two winforms each containing
I have to create a test application on JMeter where i need to get
I have a client application and a test application. If someone adds/removes units to
Work on this small test application to learn threading/locking. I have the following code,

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.