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:


<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>


.member-glenn {
   display: none;



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