Profile

Profile

  • RSS
Member Since
June 10, 2014

Search Members

  

accend

1

Posts

Viewing 1 to 1 (1 Total)

Need help with creating dropdowns and sorting array values and some math

I have developing a online calculation tool using dropdowns and I al most there with it, but i have hit a brick wall since I had to change the structure of the array.

This is where I got to on Friday and athe workings of it where nearly there -

Click the add new row to keep creating forms.

This will give you an idea of what Im trying to do

quotation.csf.dcmanaged.com/design.php

Then I had to change the way it worked and now its not working, and I cant work it out.

The dropdowns contain quarterly, monthly etc, the labels are the labels, and the value of 400 etc is the second value that I need to multiply by the choise from the dropdown which then will add to the first sum, which will total up in total total.

Ive put the version im working on now in a fiddle, but the example above will allow you to see where I nearly had it working, before I had to change it around.

http://jsfiddle.net/c9r48/2/

If someone can see it and work ito ut for me that be awesome, as I have been on this for ages and the boss is starting ot get on my back.

Thanks

Posted on June 10, 2014 at 6:21 AM

Badges

Code Compendium Community Member Community Member Code Compendium Community Member