Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-git2.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <div>I am some text</div>
</body>
</html>
 
jQuery.expr[':'].containsNoCase = function(el, i, m) {
  var search = m[3];
  if (!search) return false;
  return $(el).text().toLowerCase().indexOf(search.toLowerCase()) > -1;
};
console.log($('div:containsNoCase("text")').length);
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers