form_remote_tag and javascript function

Hello!
I have a problem with form_remote. When I use explicitly javascript'
submit() function in my form, form_remote_tag works just as regular
form_tag. How to make it work in AJAX style?

Thanks.