Syntex Error: missing ) after argument list

Syntex Error: missing ) after argument list

Hi,
Can someone tell me how to fix this. I get the same error for the commented out $.each also. I have tried to make this as simple as I can so show no other code. accData was returned from an AJAX call.


  1. function showTable(acctData) {

    //$.each(accData, function(i, item) {
      //  alert(data[i].invNo);
    //});​


    $.each(accData, function() {
        $.each(this.function(name,value) {
            document.write(name+" = "+value);
        });
    });
       
    }