JSFiddle - React, Tailwind, and code Playground
by Alfie
HTML
<div>1</div>
<div>2</div>
<div>3</div>
JavaScript
var factore = [{
"FactoreId": 1,
"FactoreItems": "a, b, c, d, e"
}, {
"FactoreId": 2,
"FactoreItems": "g,f"
}, {
"FactoreId": 3,
"FactoreItems": "i, k, h"
}]
$('div').on('mouseover', function () {
console.log(factore[$(this).text()-1]);
$(this).text("FactoreID : "+factore[$(this).text() -1].FactoreId +"FactoreItems"+ factore[$(this).text()-1].FactoreItems);
});