Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<meta charset=utf-8 />
  <title>jQuery Case Unsensitive :contains selector</title>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  article, aside, figure, footer, header, hgroup, 
  menu, nav, section { display: block; }
  div{margin: 10px 0px;}
</style>
</head>
<body>
  <div>
    IN
  </div>
  
  <strong>Anil</strong>
  
  <div>tInil</div>
  
  
  <div>
    İstanbul 
  </div>
  <br/>
  
  <p>aa</p>
  <pre> 
            
            
  </pre>
    <p>asa</p>
</body>
</html>
 
$(reference).text().toUpperCase().indexOf(toto.toUpperCase()) >= 0;
$("body *:ref('A')").css('color','red');
jQuery.expr[':'].Contains = function(a, i, m) {
  return jQuery(a).text().toUpperCase()
      .indexOf(m[2].toUpperCase()) >= 0;
};
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers