This is original function:
$(document).on('click', '.itemove', function() {
    $('.itemoveact').removeClass('itemoveact');
    $(this).addClass('itemoveact');
});
Now I want to do the same by calling another function:
$(document).on('click', '.itemove', function() {
    swclass('itemoveact');
});
function swclass(c){
    $('.' + c).removeClass(c);
    $(this).addClass(c);
}
Nothing happens. There is a problem with passing this context.
Any help?
 
     
     
     
    