Live search function suddenly stopped working!
- $.extend($.expr[":"], {
- "containsNC": function(elem, i, match, array) {
- return (elem.textContent || elem.innerText || "").toLowerCase().indexOf((match[3] || "").toLowerCase()) >= 0;
- }
- });
- $("input[name$='search']").keyup(function() {
- var filter = $(this).val();
-
- $("#contentchampions a:not(:containsNC(" + filter + "))").css("display","none");
- $("#contentchampions a:containsNC(" + filter + ")").css("display","block");
- });
This code has always been working. I didn't change anything and suddenly it stopped working. I tried to remove all of the Jquery around it, and even change the Jquery version (as this was the only thing I changed)
I get the following error:
Uncaught TypeError: Cannot read property '3' of undefined
Please help me, since I have no idea what is going on.