/ / विशिष्ट दिन के रंग को बदलना, जिसे क्लिक किया गया है - जावास्क्रिप्ट, jquery, स्प्रिंग-एमवीसी

उस विशिष्ट दिन के रंग को बदलना जिसे क्लिक किया गया है - जावास्क्रिप्ट, jquery, spring-mvc

मैं उस विशेष दिन का रंग कैसे बदल सकता हूं जिसे मेरे कैलेंडर पर क्लिक किया गया है?

यह मेरा कोड है:

selectable: true,
selectHelper: true,
select: function(calEvent, jsEvent, view) {
var moment = $("#calendar").fullCalendar("getDate");
/**
* calEvent is the event object, so you can access it"s properties
*/
if(confirm("Would you like to cancel the meal delivery ?")){
delete event in backend
jQuery.post("/vacation/deleteEvent", { "id": calEvent.id } );

delete in frontend
$(this).css("border-color", "red");
}
},

उत्तर:

जवाब के लिए 0 № 1

JQuery प्लगइन फुलकैन्डर के लिए जो मुझे लगता है कि आप उपयोग कर रहे हैं, आप इस तरह उसके शीर्षक से विशिष्ट दिन का रंग बदल सकते हैं

eventRender: function(event, element) {
$where = event.title;
if ($where == "your title")
element.css("background-color", "#bbd2e1");
else
element.css("background-color", "#f0c0cb");
}