Update Javascript variable from PHP without page reload
<p>I am using jCart as shopping cart, and from jCart it's possible to get the variable <code>$subtotal</code>.</p>

<p>However, when changing something in the shopping cart, the variable <code>$subtotal</code> doesn't change until a page reload.</p>

<p>Is it possible to use jQuery to update <code>$subtotal</code> on page click with <code>.click(function())</code> ?</p>
