<script type="text/javascript">
var searchKey = '<?php echo $tag;?>';
if(searchKey != '' && searchKey != null){
var regExp = new RegExp(searchKey,'gi');
$('.product-list-tit').each(function(){
var html = $(this).html();
var newHtml = html.replace(regExp,'<span style="color:red;">'+searchKey+'</span>');
$(this).html(newHtml);
});
}
</script>