Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html lang="en">
<body>
<ul>
    <li>dog</li>
    <li>cat</li>
</ul>
<script type="text/JavaScript" src="http://code.jquery.com/jquery-latest.js"></script>
<script>
var liElements = jQuery('ul li').get(); // Get array of li elements. Ends the chain.
alert(jQuery(liElements).eq(0).text()); // Alerts "dog"
</script>
</body>
</html>
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers