simple question on submit

simple question on submit

Hi,

I have an input text out of any form (it's a search entry).
<a href="/users/user/list/" id="cuser">Cerca</a> l'utente
   <input id="search_user" type="text" name="user"  />

I'd like to trigger some action when the user activates the input text and I thought the code would do:

    $('#search_user').submit(function() {
     var href = $('#cuser').attr('href');
     var value = $('#search_user').attr('value');
     $('#list_users').load(href + value + '/' + '?nt=1&mode=regexp');
     return false;
   });

but I'm not sure  that this is possible. On the same html code the following is working:
  
   ## Search users
   $('#cuser').click(function() {
     var ref = this;
     var value = $('#search_user').attr('value');
     $('#list_users').load(ref.href + value + '/' + '?nt=1&mode=regexp');
     return false;
   });

Am I wrong using .submit? can I do that out of a form?

thanks in advance

sandro
*:-)