Posted in JavaScript, 2008-07-22. After the first round of jQuery tips, here are 6 more JavaScript snippets. Searching for Text with jQuery This function performs a recursive search for nodes that contain a pattern. Arguments are a jQuery object and a pattern. The pattern can be a string or a regular expression. $.fn.egrep = function(pat) { var out = []; var textNodes = function(n) { if (n.nodeTy