jquery, post multiple variables
<p>I am brand new to jquery and trying to modify a basic script from php academy.</p>

<p>the jquery script is:</p>

<pre><code>&lt;script type="text/javascript"&gt;
function get() {
    $.post('getpeopleinjobs.php', {
        postvarfname: form.firstname.value,
        postvarlname: form.d = surname.value
    }, function(output) {
        $('#age').html(output).show();
    });
}
&lt;/script&gt;
</code></pre>

<p>and my form code is:</p>

<pre><code>    &lt;form name="form"&gt;
    &lt;input type="text" id="firstname"&gt;
    &lt;input type="text" id="surname"&gt;
    &lt;input type="button" value="get" onclick="get();"&gt;
    &lt;/form&gt;
</code></pre>

<p>This worked perfectly when I was passing just one variable and my code snippet was:</p>

<pre><code>$.post('getpeopleinjobs.php', {
    postvarfname: form.firstname.value
}
</code></pre>

<p>I then tried to add a second variable with </p>

<pre><code>$.post('getpeopleinjobs.php', {
    postvarfname: form.firstname.value,
    postvarlname: form.d = surname.value
}
</code></pre>

<p>It does not work now in Internet Explorer but interestingly enough it does work in Chrome?</p>

<p>Any advice for the beginner?=</p>
