title: Change background color of event on click in fullcalendar
body: <p>I want to change the background color of an event on click. The below code is doing that, but I could not figure out how to get back to the default background color of the event when I click on another event.</p>
  
  <pre><code>$(document).ready(function() {
  
      $("#adsm_calendar").fullCalendar({
          height: 575,
          events :"/get_calander_events",
  
          eventClick:function(cal_event){
  
            cal_event.backgroundColor = 'blue';
  
            $('#adsm_calendar').fullCalendar( 'rerenderEvents' );
            $.ajax("&lt;%= the_path %&gt;", {
                type: "POST",
                data: { id: cal_event.id }
            });
          },
  
          header:{
              left: "prev,next today",
              center: "title",
              right: "month,agendaWeek,agendaDay"
          }
      });
    });
  </code></pre>
  
  <p>I tried different ways, but nothing fixed it up.</p>