JavaScript Issue:
$(document).on('mouseover', '.image_slider', function() {
setInterval(slider(this), 10000);
});
function slider(that){
console.log(that);
}
I am facing some trouble with this code. Can anyone help me figure out why this function is not working and suggest a solution?