Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
<div>
  This is some very old code, you wouldn't want to refactor unless enough time is available.
  <ul>
    <li id="abc">ABC</li>
    <li id="abc">ABC</li>
    <li id="abc">ABC</li>
  </ul>
  <p id="abc"></p>
  </div>
</body>
</html>
 
$(function(){
  console.log($("#abc").length + " as expected returns one");
});
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers