Q:

Ajax form won't sent my data

$(document).ready(function() {

$("#msform").submit(function(e){
    e.preventDefault();

    $("#editjeeinde").hide();
    $("#loading").show();

    $('#msform').ajaxForm(function() {
        $("#loading").hide();
        $("#done").show();
    });
});
});

It just doesn't submit my form to the php page as shown in my html form:
<form id="msform" action="sent.php" method="post" enctype="multipart/form-data">

My submit button and the loading div and finishing div shown after the form has been sent:
    <input type="submit" name="submit" class="submit action-button" value="Verzenden" id="submit" />
    </div>
    <div id="loading">
    <p>Bezig met verzenden...<br /><img src="loader.gif" /></p>
    </div>
    <div id="done">
    <p>Uw aanvraag is succesvol ingediend.  Wij zullen deze binnen 1-2 weken verwerken en u hiervan op de hoogte brengen.</p>
    </div>

It just keeps loading... Anyone see the problem? 

A:

Just found the answer myself.  You can't use the  .submit function together with the Form plugin.  So I changed it to:
$("#msform").on("submit",function(e){
    e.preventDefault();

    $("#editjeeinde").hide();
    $("#loading").show();

    $("#msform").ajaxSubmit(function() {
        $("#loading").hide();
        $("#done").show();
    });
});

And it works like a charm.