<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
<ul class="list">
<li><a href="page.php">UUUU</a></li>
<li><a href="page_1.php">UUUU</a></li>
<li><a href="page_2.php">UUUU</a></li>
<li><a href="page_3.php">UUUU</a></li>
</ul>
<script>
$('li').each(function(index) {
alert(index + ': ' + $(this).text());
});
</script>
</body>
</html>