Whenever this event occurs, I'm encountering a console error that states "unrecognized expression: .". Everything seems to be working fine so I'm not entirely sure what the issue is other than possibly a syntax error. Any suggestions or ideas on how to resolve this?
$(".home-focus__services__list").on('mouseover', 'a', function(){
const aClass = $(this).attr("class").split(/\s+/);
const serviceObjectPhoto = aClass.filter(function(e) {
return e.indexOf("service-") > -1;
});
$(".home-focus__services__photo").children("." + serviceObjectPhoto).css({
'opacity': '1'
}
I suspect that the error might be related to
.children("." + serviceObjectPhoto).css ///////
Unfortunately, I'm unsure how to go about resolving this apparent "problem.".