Send value on onsubmit
<p>I want to send <code>document.getElementById('source').value</code> onsubmit. How can i send? thanks
this value <code>document.getElementById('source').value</code> working fine. But I want to call this on submit. Because some time user could change the value.</p>

<pre><code>new AjaxUpload(btnUpload, {
        action: 'upload-file.php?source='+document.getElementById('source').value+'&amp;destination='+document.getElementById('destination').value+'&amp;subjectarea='+document.getElementById('subjectarea').value+'&amp;order_id='+document.getElementById('order_id').value,
        name: 'uploadfile',
        onSubmit: function(file, ext,source){
             if (! (ext &amp;&amp; /^(txt|pdf|doc|docx|pptx|ppt|xlsx|xls)$/.test(ext))){ 
                // extension is not allowed 
                status.text('Only TXT, PDF, PPTX, PPT, XLS, XLSX, DOC or DOCX files are allowed');
                return false;
            }
            ;
            status.text('Uploading...');
        }
</code></pre>
