[jQuery] .attr not working?

[jQuery] .attr not working?


Hello All,
I am using a packed version of jQuery 1.2.6 and set up and cannot
get .attr to work in a particular context. I have tried a basic test
to see if it works, which it does, but does not work in the below
example. I am getting a ".attr is not a function" error in Firebug.
If you see where Im going wrong, please point me in the right
direction. Thanks!
<html>
<head>
<script type="text/javascript" src="js/jquery-1.2.6.pack.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    $('img.thumb').each(function() {
        var alt = this.attr('alt');
        // Do some stuff here...
    });
});
</script>
</head>
<body>
<img src="someimage.jpg" alt="Alternate text here" class="thumb" />
</body>
</html>