$(document).ready(function() { var m = $("meta[name=keywords]"); $('.text').html(m.attr("content")); var ArrayData = $('.text').html().split(','); function data(value){ var regex = new RegExp(value, 'g'); $('body').html( $('body').html().replace(regex,'<a href="#" class="tooltips" title="Finally Testing this out right now. Look at it scrol. This is a infolink box so that the content of the infolink is scrollable we are making sure of that right now. 100% check it out right now thats for sure keyword: '+value+'">'+value+'</a>') ); } $.each(ArrayData, function(index, value) { data(value); }); }); PHP:
This works 100% properly on the Offline Version of this, But Does not on the online version. What happens is that on the online copy, it will not loop? http://clickadx.com/sample/index.html to see it in action.