I want to add below javascript to wordpress homepage to remove css class.
I want to remove selected tab effects remove on mousehover to another tab in slider.
I have added below custom css in my style.css file to add effects to tabs in slider.
.hesperiden .tp-tab:hover {
border-top: 3px solid #5db400;
}
.hesperiden .tp-tab.selected {
border-top: 3px solid #5db400;
}
I have write below code using javascript to remove selected class on mousehover.
$(".tp-tab").hover(
function () {
$(this).addClass(".tp-tab:hover");
},
function () {
$(this).removeClass(".tp-tab.selected");
}
);
As you can see second tab is selected in slider image, Suppose When I will hover on another tab the selected tab effects should be remove.
I am not sure that above Javascript code is correct or not and also where I should put this code in wordpress as this slider is only on homepage.
Please give some suggestion.
Thanks

.) in jQuery class methods likeaddClass,removeClass,switchClassetc.. jQuery handles that by itself.