﻿$(document).ready(function () {

});


function showmats(thetb) {
    var hicss = {
        'background': '#ffff00'
    }

    var nothicss = {
        'background': ''
    }



    $("a.sum").css(nothicss);
    // $("span.sum").removeAttribute('style')

    if ($("#testtext").val() != "") {

        var blah = "a.sum:contains('" + thetb.value + "')";

        //WORKS!---  var blah = "span.sum:not(:contains('" + thetb.value + "'))";
        //$("p:not(:contains('1'))") - thanks Pipes http://groups.google.com/group/jquery-en/browse_thread/thread/1550a99705886a75

        $(blah).css(hicss);
        //$(blah).toggle();
    }

}




jQuery.expr[':'].contains = function (a, i, m) {
    return jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase()) >= 0;
};

