I have a list of images, each of which is attached to a class.
var hoverList = this.hoverable.getAllList()
when hovering over images, I want a block of text in another area, but it splits the class to display. I'm calling
hoverList.mouseover(this.hoverable.displayTheDeets)
and he launches
displayTheDeets: function(){
big=$(".project-details")
thisClass=$(this).attr("class")
console.log(thisClass)
$(big).find(thisClass).css("display", "block")
}
From the console, if I run a literal command
$(".project-details").find(".code-fusion")
it returns the item i want. And I can change the display without any problems.
I think my problem is with this class. Any thoughts would be appreciated.
source
share