Avatar

Level 2

Hi, so I have a form where the user needs to select 2 out of 3 possible checkbox choices. What I want it to do if you have selected for instance 1st and 2nd checkbox and then you change your mind and want the 3rd instead of 2nd I want it to delete the last selected checkbox and select the 3rd one. Whats the javacript for this? thanks