Jquery .click and .post not working
<p>I must be missing the obvious.  I'm trying to submit a form on my page with jquery like so:</p>

<pre><code>    $('#upload_profile_photo').click(function(e) {
        e.preventDefault();

        alert("Clicked");

        $.post('gallery/functions.php', $("#process_image_form").serialize(), function(status) {
            alert(status.toSource());
            if (status.st) {
                alert("Status seen");
            }
        }, "json");
    });
</code></pre>

<p>The functions.php page looks like this:</p>

<pre><code>&lt;?php 

$res = new stdClass();

$res-&gt;st = 'TEST';
echo json_encode($res);
exit();

?&gt;
</code></pre>

<p>Any idea what I'm missing? I see the alert for "Clicked"</p>
