array of events javascript
===

I've got a Javascript array, like this : 

`var fruits=['apple','orange','peach','strawberry','mango']`

And I want to add an event on these elements who will give me varieties on my database. For example 'apple' will give me `<div class="apple">golden<div><div class="apple">granny</div><div class="apple">canada<div>`.

Moreover I've got nothing on my database about mango varieties, I want to highlight 'mango' from the rest of the array. I've already created my classes like this: `.black {
        color: black;
        pointer-events: none;
        cursor: default;
        }
`
`.couleur {
        color: blue;
         }` 

Have I to add HTML code? 
Thanks for your help, it's only my second post on stackoverflow so sorry for the weird code samples. 