getting a value along with html markup returned by Ajax in Jquery
<p>I use the following to retrieve some html using Jquery:</p>

<p>index.php</p>

<pre><code>$.post(
    'get-products.php', 
    $("#offerForm").serialize() + '&amp;lastid=' + highest, 
    function(data) {            
        $('#demo').html(data); 
    }
</code></pre>

<p>Is it possible to also retrieve a value of a variable from get-products.php, example:</p>

<p>get-products.php</p>

<pre><code>&lt;? echo $htmlOutput;
echo $variable; ?&gt;
</code></pre>

<p>index.php</p>

<pre><code>$.post(
    'get-products.php', 
    $("#offerForm").serialize() + '&amp;lastid=' + highest, 
    function(data) {
        $('#demo').html(data);
        //variable processing statement goes here   
    }
</code></pre>
