Jquery - how to send a parameter with submit()
<p>I have a view that lists a number of companies, and a details view for each company.
When I am looking at the details of one company, I want to click on navigation buttons to see the next or previous company. Also I would like to have the first and last company as well.
So in my MVC application I am storing the Id of the first, previous, next and last company, and when the user clicks on the button, say for the next company, I want to take the next companyId and post it to the server. One way to do this is to use jquery submit(). However I cannot work out how to send the companyId in the url for submit().</p>

<p>So my HTML looks like;</p>

<pre><code>&lt;span style="margin-left:200px;"&gt;
    &lt;input type="submit" id="btnFirst" value="|&lt;&lt; First"/&gt;
    &lt;input type="submit" id="btnPrev" style="margin-right: 50px;" value="|&lt; Previous"/&gt;
    &lt;input type="submit" id="btnNext" value="Next &gt;|"/&gt;
    &lt;input type="submit" id="btnLast" value="Last &gt;&gt;|"/&gt;
&lt;/span&gt;
</code></pre>

<p>The hidden fields (converted in the page source from the MVC markup);</p>

<pre><code>        &lt;input id="Navigator_FirstPageId" name="Navigator.FirstPageId" type="hidden" value="1" /&gt;
        &lt;input id="Navigator_PreviousPageId" name="Navigator.PreviousPageId" type="hidden" value="7008" /&gt;
        &lt;input id="Navigator_NextPageId" name="Navigator.NextPageId" type="hidden" value="7009" /&gt;
        &lt;input id="Navigator_LastPageId" name="Navigator.LastPageId" type="hidden" value="7009" /&gt;
        &lt;input id="Navigator_OnFirstPage" name="Navigator.OnFirstPage" type="hidden" value="False" /&gt;
        &lt;input id="Navigator_OnLastPage" name="Navigator.OnLastPage" type="hidden" value="True" /&gt;
</code></pre>

<p>and the jquery that needs to be corrected;</p>

<pre><code>$('#btnNextt').click(function () {
          submit($('#Navigator_LastPageId').val());
}
</code></pre>
