14.10.2025, 08:50
For all relevant plan links set Additional classes to plan-link plan-link-123 where 123 is plan id to which the link refers.
Custom JS:
Custom CSS:
Custom JS:
Code:
$(function() {
var prevId;
function onshowplan() {
if (prevId) {
$('.plan-link-' + prevId).removeClass('active');
}
if (currentPlanId) {
$('.plan-link-' + currentPlanId).addClass('active');
prevId = currentPlanId;
}
}
$('body').on('showplan', onshowplan);
onshowplan();
});
Custom CSS:
Code:
.plan-link.active {
color: red;
}