I have some drop down boxes which are dynamically created via php, created from a number of either 6, 12, 24 or 36 - also created from a number of check boxes. What I want to do is show the total number of all the drop down boxes (so if there's 3, one is selected 6, one is selected 3 and the third is set to 3 so the total is 12 - so from 3 drop down boxes). It must add all them up and alert if it doesn't match the total value of the drop down boxes (in this case 12).
How would I achieve this on-the-fly with ajax?
Thanks!
Jason