I have 3 dropdownlist with percentage value inside. After selected the 3 dropdownlist, the 3 of them must be added up to be 100% after selected the options given from each dropdownlist.

How do I write the logic? Can anyone give some examples of codes?