[jQuery] Can not get simple post snippet to work NEWB

[jQuery] Can not get simple post snippet to work NEWB


    $(document).ready(function() {
            $.post("check.pin.php", [uid: "1"], foobar);
    }
    function foobar() {
        alert("works");
    }
Returns "missing } after element list"
can anyone point out to me whats wrong?