Errors in Jquery code
<p>This code doesn't work, anyone have any recommendations?</p>

<p>Perhaps I did something wrong? Anyone could check this code please? Is that because I used jquery?</p>

<pre><code>$(document).ready(function showCart(next) {
    var ca = document.getElementById("cartArea");
    var params = "";
    for (i = 0; i &lt; document.clientCart.elements.length; i++) {
        param = getElemValue(document.clientCart.elements[i]);
        if (param != "") params += param + "&amp;";
    }
    if (next) params += "Next=1";
    ca.innerHTML = postIt(params);
    makePie();
}
});
</code></pre>
