Jquery Validation on link that have a "onclick function"

Jquery Validation on link that have a "onclick function"

hi,
this is my first post on jquery forum.
i have a form,  that send with a link, not with a classic submit button.

jquery validation plugin work, but the problem is that the link have also a "onclick function".
when i click the link "#carica", if the validation is OK, the form information are sended, but the "onclick" function doesn't work.

this is the code:

  1. <form id="singularDemo" enctype="multipart/form-data">
  2. <p>Immagine</p><div id="single"></div><br/>

  3. <p>Nome Prodotto</p>
  4. <input type="input" name="nome" id="nome"/>

  5. </form><br/>
  6. <a href="javascript:;" id="carica" onClick="document.getElementById('agileUploaderSWF').submit();">Carica</a>
the Jquery code:

  1. $(function () { 
  2.   $('#carica').click(function(e) {
  3.   e.preventDefault();

  4. /* $("#agileUploaderSWF").submit();*/

  5.     $("#singularDemo").submit();

  6.   }); 
  7.     $("#singularDemo").validate(
  8. {
  9.         rules:
  10.         {
  11.             nome: "required",
  12.       },
  13.         messages:
  14.         {
  15.             nome: " Inserisci il tuo nome!",           
  16.         }
  17.     }
  18. );
  19. });
help me, please!
thanks a lot.

Lorenzo

ps sorry for my bad english!