我有一个 JQuery 事件日历,其中显示了事件我想要一个单击功能来更改事件的背景颜色并插入一个永久颜色更改的值。我还想要一个运行更改颜色事件日历的代码。这是我的活动日历代码...
$(document).ready(function () {
$('#Uploaded').hide();
$('#chang').click(function () {
$('#Uploaded').show('slow');
});
$('#chang2').click(function () {
$('#Uploaded').show('slow');
});
$('.fc-event-skin').live("click", function () {
$(this).css('background-color', '#090');
$(this).css('border-color', '#090');
});
$('#calendar').fullCalendar({
editable: true,
eventColor: '#cd3427',
events: "json-events.php",
buttonText: {
today: 'idag'
},
monthNames: ['Januari', 'Februari', 'Mars', 'April', 'Maj', 'Juni', 'Juli',
'Augusti', 'September', 'Oktober', 'November', 'December'],
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday',
'Thursday', 'Friday', 'Saturday'],
eventDrop: function (event, delta) {
$.ajax({
type: "POST",
url: "drag.php",
data: "date=" + delta + "&id=" + event.id,
success: function (msg) {
//alert( "Data Saved: " + "id="+ event.id +"&date="+ delta );
}
});
},
loading: function (bool) {
if (bool) $('#loading').show();
else $('#loading').hide();
}
});
});