Custom JS jQuery

I was told to add the below jQuery and wanted to make sure I can just copy and paste this into the custom js area? It’s for adding a css class to a booking plugin.

jQuery( “.os-day.os-month-current” ).each(function() {
if(jQuery( this ).data( “available-minutes” )){
jQuery(this).addClass(".dateavailable")
}
});

Hi @allcal,

Thank you for writing in, yes that should work inside Theme Options > JS or Page > JS area, and yes you can just copy that.

But please be reminded that we can not provide support if something goes wrong with a custom script.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.