jquery.form submit problem when using a link

jquery.form submit problem when using a link

Hello,

I use the jquery.form (v2.39) plugin with a link to call the function that will send the form. Here is the code
  1. <a href="javascript:submitForm();void(0)" title="Enregistrer"><img class="ro" src="/images/btn_save.gif" alt="Enregistrer"></a>
  2. <script>
  3. $(document).ready(function() {
  4.         submitForm = function() {
  5.                 $('#formTelephone').ajaxForm(function(response) {
  6.                         if (response != '') {
  7.                                 $('#error').html(response);
  8.                         }
  9.                         else {
  10.                                 location.reload(true);
  11.                         }
  12.                 });
  13.         }
    });
  14. </script>
The problem is the form isn't submited. I have no response.
But if I call this function with this code, all is OK.
  1. <button class="ro ui-state-default ui-corner-all" title="Enregistrer" onclick="submitForm()"><img src="/images/btn_save.gif" alt="Enregistrer"></button>
Why can't I use a link to call the function ?

Thanks in advance