We want to pay one of our advisors. We direct him to a page where he can see he's going to be paid $100. At the bottom of the page he will be able to choose if a part of his earnings will go to charity.
Implement with html, css and js the following radio buttons selection. The value selected should be called "charity fraction" and should be submittable if the radio button was placed inside a form.
The fourth button contains a select tag that will update the amount below it once selected.
- Code cleanliness
- Minimal amount of JS
- Cross browser compatibility down to IE 7 included (althought it doesn't have to be pixel perfect for IE 7)