[jQuery] each returning unwanted object array?

[jQuery] each returning unwanted object array?


All, this email will attest to my newbieness:
I'm trying to use .each on all checkboxes in a form that contain the name
"a". The problem is that the each is returning what appears to be an object
array at the end of the list. Here's the sample code:
<form name="f" id="f">
    <input type="text" name="t" id="t" value="foobar">
    <input type="checkbox" name="a" id="a" value="foo">
    <input type="checkbox" name="a" id="aa" value="bar" checked>
    <input type="checkbox" name="b" id="b" value="zzzz" checked>
</form>
<script>
    alert($("[@name='a']:checked").each(function(){alert(this.value);}));
</script>
I would have thought that this example would only alert "bar".
Any help would be, well, helpful!!!!
TIA!
PS - I'm trying to make a switch from prototype to jquery, and I need to
replicate the $F() method as best as possible. Thanks!
--
View this message in context: http://www.nabble.com/each-returning-unwanted-object-array--tf2672144.html#a7451619
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/