Jquery .span refresh onclick
<p>Am I correct in thinking this should work?</p>

<p>I have this jquery:</p>

<pre><code>&lt;script&gt;
    $(function() {
      $(".wpsc_buy_button").click(function(evt) {
         $(".counter").load("index.php")
         evt.preventDefault();
      })
    })
&lt;/script&gt;
</code></pre>

<p>This .span:</p>

<pre><code>&lt;span class="counter"&gt;              
    &lt;?php 
        $i = 0;
        while(wpsc_have_cart_items()): wpsc_the_cart_item();
    ?&gt;
    &lt;?php $i += wpsc_cart_item_quantity();  ?&gt;
    &lt;?php endwhile; ?&gt;
    &lt;?php print $i ?&gt;
&lt;/span&gt;
</code></pre>

<p>And this button:</p>

<pre><code>&lt;input type="submit" value="Add To Cart" name="Buy" class="wpsc_buy_button" id="product_16_submit_button"/&gt;
</code></pre>
