[jQuery] two submits in the same form

[jQuery] two submits in the same form

Hello, here I provide more of my code so we you see exactly what I'm trying to accomplish...


code:
 
$(document).ready(function() {
 var validator = $("#form1").bind("invalid-form.validate", function() {     
   $("#summary").html("<tr><td aling='right' width='2%' class='ico'><img src='warning.gif' width='16' height='15' /></td>"+
          "<td width='98%' valign='top' aling='center' class='err_validation'>"+
          "<t1taglib:PrintMsg msgcode="RECOVERABLE_ERROR_MSG" /></td></tr>");
  }).validate({
  rules: {
   errorContainer: $("#summary"),
   input1: "required",
   input2: "required",
   input3: "required"
     },
 messages: {
   input1: <t1taglib:ShowErrorHelp titleCode="<a href="http://input1.name">input1.name</a>" msgcode="GE_NOT_CHOSEN" />,        
   input2: <t1taglib:ShowErrorHelp titleCode="<a href="http://input2.name">input2.name</a>" msgcode="GE_NOT_CHOSEN" />,    
   input3: <t1taglib:ShowErrorHelp titleCode="<a href="http://input3.name">input3.name</a>" msgcode="GE_NOT_CHOSEN" />
   } 
   }
  });
  });
 
 
 
 <form id="form1" method="post">
    <input type="text" id="input1" >
    <input type="text" id="input2" >   
    <input type="text" id="input3" >
   
    <input type="submit" value="Submit button" name="Submit" >
    <a id="submit" href="#">Submit link</a>
</form>

































I have the submit button that validate that input1, input2 and input3 are complete and then
submit the form (redirect to page1.jsp)
And I need to have a link that opens a pop-up window after checking that input1 is not
empty.
So I think that maybe I can have two diferent validations form the same form, one for the submit
button (the one I`m doing in this code) and one for the submit link (that need to check that input1
is required), but I`m a begginer in jquery so I don`t know if it is possible...







Anybody could help me??
Thank! Sole.