anchor.diff:    $(function() {
       $( "#tabs" ).tabs({ heightStyle: "auto"});
     });
  +  $(document).on("click", ".primary_checkbox", function() {
  +    el = $(this);
  +    if (!el.prop('checked')) {
  +      // unselect all options
  +      row = el.closest("div[class='event_choices']");
  +      selects = row.find("select");
  +      selects.each(function() {
  +        sel = $(this);
  +        sel.val("");
  +      });
  +      checkbox_inputs = row.find("input[type='checkbox']");
  +      checkbox_inputs.each(function() {
  +        inp = $(this);
  +        inp.prop('checked', false);
  +      });
  +      text_inputs = row.find("input[type='text']");
  +      text_inputs.each(function() {
  +        inp = $(this);
  +        inp.val("");
  +      });
  +    }
  +  });
   </script>
  
positive.code:                 <span class="event_choice">
                    <% 
                      found_rc = nil
                      rc = @registrant.registrant_choices.each do |rc|
                      if rc.event_choice_id == choice.id
                        found_rc = rc
  
negative.code:                   <%= f.fields_for :registrant_choices, found_rc do |ec| %>
                      <%= ec.hidden_field :event_choice_id %>
                      <% if ec.object.event_choice.cell_type == "boolean" %>
                        <%= ec.check_box :value, :class => (primary ? "primary_checkbox" : "") %>
                        <% if choice.label.blank? %>
                          <%= ec.label :value, choice.event %>
                        <% else %>
  