ninja2,
Google Chrome нажать F12 запустить код
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script>
$(function() {
function c() {
console.log("#menu a", $("#menu a"))
}
c();
});
</script>
</head>
<body>
<div id="menu">
<a href="#dfdf">1df</a>
<a href="#fgg44">2fsdfsd</a>
<a href="#Df324">3dsfdsf</a>
<a href="#dfs33">4sdfsdf</a>
</div>
</body>
</html>