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>
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script src="http://code.jquery.com/jquery.min.js"></script>
<link href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="http://twitter.github.com/bootstrap/assets/css/bootstrap-responsive.css" rel="stylesheet" type="text/css" />
<script src="http://twitter.github.com/bootstrap/assets/js/bootstrap.js"></script>
  <meta charset="utf-8">
  <title>:nth-of-type() in Sizzle/jQuery?</title>
 </head>
 <body>
  <p>This is paragraph #1.(Should be green.)</p>
  <p>This is paragraph #2. </p>
  <p>This is paragraph #3. (Should be green.)</p>
  <p>This is paragraph #4. </p>
  <p>This is paragraph #5. (Should be green.)</p>
  <p>This is paragraph #6. </p>
  <p>This is paragraph #7. (Should be green.)</p>
  <p>— @galambalazs</p>
    <script>
      
  </script>
 </body>
</html>
 
p:nth-of-type(even) { background: #2b618e; color:#fff; }
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