JSFiddle - React, Tailwind, and code Playground
HTML
<div id="myDiv"></div>
JavaScript
var arr = [ "one", "two", "three", "four", "five" ];
var referrer = "the number is three";
$.each(arr, function(){
if (referrer.indexOf(this) >= 0){
$('#myDiv').html(this + '? Get free quotes for ' + this + '!');
return false;
}
});