Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2012
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    textbox on change event issuer

    Hi

    I have created a javascript form and based on the checkbox(s) sselected I calculate a updated total.
    http://ectpro.co/rework-calc/rate4.php

    I have this working for all the fields except for 2 - where the user can enter in their own quantity.

    I can't figure this out....

    If the user enters a value in textbox 3 or 4, the checkbox to the left is selected and
    I need to be able to get the value of what the user entered.

    Any help much appreciated.
    Attached Files Attached Files

  2. #2
    Master Coder sunfighter's Avatar
    Join Date
    Jan 2011
    Location
    Washington
    Posts
    6,277
    Thanks
    30
    Thanked 863 Times in 861 Posts
    I don't open files that people upload here, so this is not a modification of your code.
    You already have a JS function that is alerted to an change in the numbers. It checks the box and does the computations for the individual amount sub-total. I'd add a call to the grand total function so that the new amount is added to the total.
    Evolution - The non-random survival of random variants.
    Physics is actually atoms trying to understand themselves.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •