Coloring I can, but I need to colorize when selecting the vendor X, How to color different events in fullcalendar? based on an option ... example: I have 3 sellers, I want each seller to have his own color when clicking on the day to register an event, that he chooses through a modal. This mode is the event registration screen, where the seller chooses the Title, the name of the Seller, the start date and the end date .... when to choose the seller A the color in fullcalendar should be red, when choosing the Seller B the color should be blue and when you choose Seller C the color should be green ... thank you very much ...
<label for="inputEmail3" class="col-sm-2 control-label">Salesman</label>
<div class="col-sm-10">
<select name="color" class="form-control" id="color">
<option style="color:#FFD700;" value="#FFD700">ERICK</option>
<option style="color:#0071c5;" value="#0071c5">MATHEUS</option>
<option style="color:#FF4500;" value="#FF4500">JÉSSICA</option>
</select>
</div>
<div class="modal-body">
<dl class="dl-horizontal">
<dt>ID do Evento</dt>
<dd id="id"></dd>
<dt>Titulo do Evento</dt>
<dd id="title"></dd>
<dt>Vendedor</dt>
<dd id="color"></dd>
<dt>Inicio do Evento</dt>
<dd id="start"></dd>
<dt>Fim do Evento</dt>
<dd id="end"></dd>
</dl>
</div>
eventClick: function(event) {
$('#visualizar #id').text(event.id);
$('#visualizar #title').text(event.title);
$('#visualizar #color').text(event.color);
//$('#visualizar #vend').text(event.vend);
$('#visualizar #start').text(event.start.format('DD/MM/YYYY HH:mm:ss'));
$('#visualizar #end').text(event.end.format('DD/MM/YYYY HH:mm:ss'));
$('#visualizar').modal('show');
return false; },