/    Sign up×
Community /Pin to ProfileBookmark

mathematical function in JS

Hi There,

I need to calculate Mathematical function within the form which has following crateria.

I have a first “select item form” from where user just select all the item they need while performing there job.

  • after they submit the items its go to the main Form where they need to key in many information alonge with all the item they selected with ” which contain qantity and price ” as a input.

  • There are multiple items with quantity and unit price.

  • WHEN USER ENTER THE QUANTITY AND THE UNIT PRICE I WANT SUBTOTAL TO CALCULATE AUTOMATICALL WHEN DONE FOR ALL THE ITEM SELECTED I ALSO WANT TOTALPRICE TO BE CALCULATED AND INTER IN THE FIELD CALL TOTALPRICE. IS THERE ANY WAY I CAN DO THIS USING JS. ANY EXAMPLE OR SAMPLE CODE PLEASE. YOUR HELP WILL BE APPRICIATED.

    THANKS.
    Indra.

    to post a comment
    JavaScript

    1 Comments(s)

    Copy linkTweet thisAlerts:
    @indraauthorFeb 23.2004 — I have posted my form on this link.

    Please have a look

    http://64.42.201.98/indra/testsite/selectITEM.cfm

    Thanks.
    ×

    Success!

    Help @indra spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.17,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @nearjob,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,
    )...