Looks like you need a closing parenthesis for your document.ready:

        $(document).ready(function() {

                        $.post("check.pin.php", [uid: "1"], foobar);

        }); // <-- need the closing paren and semicolon here

        function foobar() {
                alert("works");
        }




--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Mar 2, 2008, at 6:45 PM, leotemp wrote:



        $(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?

Reply via email to