Jquery filter list without case sensitive

后端 未结 4 1081
忘掉有多难
忘掉有多难 2021-01-02 11:12

I want to filter the list without case sensitive. I want to match only character not match upper case or lower case.

  1. XXXXXXX
  2. yyyyyyy
  3. XXxxx
4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-02 11:53

    Just Add jQuery.expr[":"].contains = function (a, i, m) { return (a.textContent || a.innerText || "").toUpperCase().indexOf(m[3].toUpperCase())>=0;};

提交回复
热议问题