Sending the parent's ID as a parameter in jEditable
<p>Given</p>

<pre><code>$(".foo").editable("script.php")
</code></pre>

<p>How can I pass the ID of <code>.foo</code>'s parent as a parameter? I've tried</p>

<pre><code>$(".foo").editable("script.php", { 

     submitdata: {

          parent_id: $(this).parent().attr('id')

                 }
     });
</code></pre>

<p>and every variant of that I can think of, but it just seems like the $(this) object is not working in this context.</p>
