Getting 'this' object in javascript without using the word 'this'
<p>What I am trying to do is getting the same result as clicking on this following submit button.</p>

<pre><code>&lt;input id="submit_http:" class="add_submit" type="button" onclick="return dex.forms.form_ajax_submit(this,function(res) { alert('posting failed'); },function(res) { alert('posting success'); });" value="Next" name="submit_http:"&gt;
</code></pre>

<p>I was trying to do it like that:</p>

<pre><code>$('.NextButton').click(function () {
    dex.forms.form_ajax_submit(document.getElementsByName('submit_http:'),
        function(res) { 
            alert('posting failed');
        }, 
        function(res) { 
            alert('posting success'); 
        });
});
</code></pre>

<p>But looks like document.getElementsByName is not returning the same result
as the submit button 'this'
How can I solve this issue?</p>
