• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

coldfusion - javascript

Guest
Oct 06, 2007 Oct 06, 2007

Copy link to clipboard

Copied

I have checkbox base on db. If user check checkbox then it has differenct cost and if not checked then it has different cost and finally i would like to calculate total and dispaly in text box on fly before submiting the form. I am not sure how it will work on fly. Please advice thanx.
TOPICS
Advanced techniques

Views

206

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 06, 2007 Oct 06, 2007

Copy link to clipboard

Copied

On your form, put a hidden field right before the check box. Give it a value of the 1st price. Give your check box the 2nd price. Make sure they have the same name.

On your action page, use listlast to get the price.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 07, 2007 Oct 07, 2007

Copy link to clipboard

Copied

LATEST
can u provide me code please

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation