Simple problem on my jQuery function
<p>Hi I am trying to show 1.php on div firstresult and 1b.php to div secondresult. My code is not correct though. I want one option value to trigger two div and two php files. like to get the val and display 1.php to first and 1b.php to the second.</p>

<pre><code>&lt;script language='JavaScript'&gt;
$(document).ready(function() {
$('#termid').change(function() {
    var val = $(this).val();
    $('#firstresult').load(val + '.php', { value: val }).$('#secondresult').load(val + 'b.php', { value: val });
});
});
&lt;/script&gt;

    &lt;form&gt;
        &lt;select id="termid"&gt;
            &lt;option value=""&gt;- select -&lt;/option&gt;
            &lt;option value="1"&gt;Option 1&lt;/option&gt;
            &lt;option value="2"&gt;Option 2&lt;/option&gt;
        &lt;/select&gt;  
    &lt;/form&gt;

&lt;div id="firstresult"&gt;&lt;/div&gt;
&lt;div id="secondresult"&gt;&lt;/div&gt;
</code></pre>
