0

When clicked,

selected: function(event, ui) {
    if (!$(ui.selected).hasClass('selected')) {  
        $(ui.selected).addClass('selected');
    } else {
        $(ui.selected).removeClass("ui-selected selected");
    }
}

I want to call the function I defined after the code is executed.

selected: function(event, ui) {
    if (!$(ui.selected).hasClass('selected')) {  
        $(ui.selected).addClass('selected');
    else {
        $(ui.selected).removeClass("ui-selected selected");
    }
    makeGrid();
}

When a calendar date is selected, the date cell changes color and I want makeGrid(); to be executed. makeGrid(); is executed, but the color of the selected date does not change.

2

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.