Why can't I bind javascript submit() with variables together?
<p>I created a variable <code>targetForm</code> and tried to bind it with <code>submit()</code>. However, the bound function doesn't catch submit event when I call a function and trigger variable to submit form.</p>

<pre><code>var targetForm;

function Add_Notice_Message(evt){

    alert('set up form');

    targetForm = document.notification_form;
    targetForm.classname= 'TTWForm';
    targetForm.method = "post";
    targetForm.action = '';
    targetForm.novalidate = '';

    alert('beforesubmmit'); 
    targetForm.submit();
}

$( targetForm ).bind(
    "submit",
    function( event ){
        alert('submit');

        var $form = $(this), type;
        type = $form.find('#type').val();

        var options = {
            category:'projects',
            message: 'Sample Notification'
        };

        notifications.createNotification(options);
        return false;
    }
);
</code></pre>
