2

On the moment I am building code to show text when I hover on a certain div. I am able to produce this, but it’s static and I can’t reproduce it. I would like to make it dynamic. I have a single function that recognizes which photo you are hovering over and shows the div that belongs to it. What I’ve tried is as shown below:

HTML

<div class="member-photo glenn">
    <img src="images/retouched/glenn-round-transparant-not.png" class="img-responsive">
    <div class="member-text member-glenn">
        <p class="member-name">Glenn</p>
        <p class="member-function">developer</p>
    </div>
</div>

CSS

.member-glenn {
   display: none;
}

JQuery

$(".glenn").hover(function(){
    $('.member-glenn').show();
},function(){
    $('.member-glenn').hide();
});

What I would like is to replace all occurrences of glenn (my name) with a default of class/id.