I'm new to jQuery and I know this is probably super easy. I wanna get the returned value from a callback function in an event. Code is here:
$('.hintItem').on('mouseenter', function(e){
changeItemStyle(e);
var hintItemIndex = $(this).index();
return hintItemIndex;
});
I want to grab the value of hintItemIndex and store it to a new variable. Could anyone kindly help me?