I've had a lot of help from a number of you over the past week or so with my first effort programming an application from the ground up. Thank you from the bottom of my code monkey heart!
I need to add a points calculation function to my fantasy football scoring app. Below is the results page, with the drop downs for the calculation function in place (but without the actual calculating functionality):
The user will be able to select how many points each stat (or increment of a stat) is worth and then click the Get Scores button and the totals will show up in the TFP column (the tan column).
So using the settings shown in the screenshot, the formula would be:
1(Pass_Yds / 20) + (4 * Pass_TD) + 1(Rush_Yds / 10) + (6 * Rush_TD) + (0 * Int) = TFP
I've looked at the jQuery calculator plugin, which I assume is what I'll need to use, but I have no idea how to do the type of complex (for me at least) calculation shown above.