I have a form with some fields and a button with an link. I want to click this button and make the submit of the form.
The form look like this:

```
 <form id="myForm" action="mypage.jsp">
  .....
 <a class="submit-button" href="#">Submit</a>
 </form>

```

and then my js:

```
  $(".submit-button").click(function(){
        if($(".submit-button").hasClass("disabled") == false){ 
            alert("true");
            $("#myForm").submit(function(ev) { 
                alert("submit");
                var form = $(this);
                $.ajax({
                    url: form.attr('action'),
                    data: form.serialize(),
                    success: function (data) {
                        ....
                    }
                });     
                return false;
            });         
        }   
    });

```

My problem is that when I click the button nothing happens. I can see the "true" alert but not the "submit" one. Does anyone know what could be the problem?
Thanks in advance