jQuery.highlightRegex
jQuery.highlightRegex copied to clipboard
Custom tagtypes and classnames
trafficstars
No matter what I cannot get to work the arguments to change the default element and class for matched expressions. No matter how I put it together, it defaults to span .highlight.
$(document).ready(function(){ $(".css-tabs").highlightRegex( /[aeiou]/ig, { tagType: 'span', className: 'ipHighlight' }); });
Thanks, great plugin. I can't wait to master it.
@zchef2k You might be interested in mark.js