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 = jQuery.expr.createPseudo(function(search) {
  if (!search) return function() { return false; };
  search = search.toLowerCase();
  return function(el) {
    return $(el).text().toLowerCase().indexOf(search) > -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
timmywilpro
0viewers