Studyon Minte9.com
jQuery

Study

Each



<ul>
    <li>foo</li>
    <li>bar</li>
  </ul>
  
<script>
	$('li').each(function(index) {
		alert(index + ': ' + $(this).text());
	});
</script>


http://api.jquery.com/each/