[jQuery] [@name^='foo'] doesn't works

[jQuery] [@name^='foo'] doesn't works

I have the following code:
$("[@name^=foo]").each(function() {
            this.checked = x;
        });
or
$("[@name^='foo']").each(function() {
            this.checked = x;
        });
or
$("input[@name^='foo']").each(function() {
            this.checked = x;
        });
Code doesn't works
Error: z has no properties
Source file: jquery-latest.pack.js
Line: 12
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/