/**
 * HideSeek jQuery plugin
 *
 * @copyright Copyright 2013, Dimitris Krestos
 * @license   Apache License, Version 2.0 (http://www.opensource.org/licenses/apache2.0.php)
 * @link      http://vdw.staytuned.gr
 * @version   v0.1.0
 */

  /* Sample html structure

  <div class='selector'></div>

  */

;(function($, window, undefined) {
  "use strict";

  $.fn.hideseek = function(options) {

    var defaults = {
      datalist:   '.hideseek-list',
      dataattr:   'text',
      highlight:  false
    };

    var options = $.extend(defaults, options);

    $(this).each(function() {

      var $this = $(this);

      $this.keyup(function() {

        var q = $this.val().toLowerCase();

        $(options.datalist).children().each(function() {

          var data = (options.dataattr != 'text') ? $(this).attr(options.dataattr).toLowerCase() : $(this).text().toLowerCase();

          if (data.indexOf(q) == -1) {

            $(this).hide();

          } else {

            $(this).show();

          }

        });

      });

    });

  };

  $(document).ready(function () { $('[data-toggle="hideseek"]').hideseek(); });

})(jQuery);
@@ -225,20 +225,103 @@
  v0.1.0%0A
+ *%0A * Dependencies are include at the bottom:%0A * Highlight v4 by Johann Burkard%0A *%0A
  */%0A
-
 %0A  /* Sa
@@ -1048,32 +1048,100 @@
 e %7B%0A%0A           
+ options.highlight ? $(this).removeHighlight().highlight(q).show() :
  $(this).show();
@@ -1275,16 +1275,16 @@
 ); %7D);%0A%0A
-
 %7D)(jQuer
@@ -1286,8 +1286,979 @@
 jQuery);
+%0A%0A%0A/*%0A%0Ahighlight v4%0A%0AHighlights arbitrary terms.%0A%0A%3Chttp://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html%3E%0A%0AMIT license.%0A%0AJohann Burkard%0A%3Chttp://johannburkard.de%3E%0A%3Cmailto:jb@eaio.com%3E%0A%0A*/%0AjQuery.fn.highlight=function(t)%7Bfunction e(t,i)%7Bvar n=0;if(3==t.nodeType)%7Bvar a=t.data.toUpperCase().indexOf(i);if(a%3E=0)%7Bvar s=document.createElement(%22mark%22);s.className=%22highlight%22;var r=t.splitText(a);r.splitText(i.length);var o=r.cloneNode(!0);s.appendChild(o),r.parentNode.replaceChild(s,r),n=1%7D%7Delse if(1==t.nodeType&&t.childNodes&&!/(script%7Cstyle)/i.test(t.tagName))for(var h=0;h%3Ct.childNodes.length;++h)h+=e(t.childNodes%5Bh%5D,i);return n%7Dreturn this.length&&t&&t.length?this.each(function()%7Be(this,t.toUpperCase())%7D):this%7D,jQuery.fn.removeHighlight=function()%7Breturn this.find(%22mark.highlight%22).each(function()%7Bwith(this.parentNode.firstChild.nodeName,this.parentNode)replaceChild(this.firstChild,this),normalize()%7D).end()%7D;

Add highlight option