Why my form isn't submitting ? using event in jQuery
<p>I'm looking for why my form isn't submitting with that code :</p>

<pre><code>$("#my_form").on('submit', function(e) {
    if (!myCondition) {
        if (anotherCondition === true) {

            e.preventDefault();
            $('#modal').modal('show');
            $("#btn_valid").on('click', function(e) {
                return true;
            });       
        }
    }
    return true;
});
</code></pre>

<p>The <code>modale</code> (who was present in the DOM) is showing but then if I hit the <code>#btn_valid</code> the form is not submitted and the modal stay on screen.</p>

<p>If I remove the <code>e.preventDefault</code>, the process is not stopped, meaning that the modale is showing and right after the form is submitting without pressing the button on the modale.</p>

<p>What am I doing wrong ?</p>

<p>Thanks.</p>
