[jQuery] $(form[@name='xxx']) does not work

[jQuery] $(form[@name='xxx']) does not work

hi there.
i write some codes like this: <form action="#" method="post" class="form-layout" name="reg">.
and in js, I want to do something with submit event, like this:
$(form[@name='reg']).submit( function() { ... });
use $(form[@name='reg']) can not work for me. but when i use alert($(form[@name='reg'])) to detect it, it is absolutely exist.
my solution is use $("
form.form-layout").submit() . is it different between this two select methods?
thanks in advance.<br clear="all">
--
<a href="http://realazy.org">realazy.org</a>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/