Good I need for javascript
or jquery
know if you have clicked or clicked on the day button week or month of fullcalendar.
already the fullcalendar works is created dynamically from javascript adds events etc. in the there are at this moment three buttons see in the next fragment;
header: {
left: 'agendaDay,agendaWeek,month',
center: 'title',
right: ''
},
if I need to click on either the agendaDay, agendaWeek or month to know that click is given because full calendar adds classes and not id and I do not know how to take these values. for example with the following buttons and behind you can do this:
in the html:
<button id='next'><span class='fc-text-arrow'><strong >›</strong></span></button>
in javascript:
$('#prev').on('click', function() {
$('#CalendarioWeb').fullCalendar('prev')
actualizarComboBoxFechas(moment().day())
})
But with the week and month day buttons it does not work, nothing comes out in the documentation "according to what I've read" and for javascript
try this:
document.getElementsByClassName("fc-agendaDay-button").id="btnDia";
to try to assign id to the button of the day this is added but not within the element in specific so when pulse click does not call any event eye probe with an alert ("etc")