jEditable response handling issues
<p>I have a bunch of html that looks like this - only showing one here as it's all that's needed:</p>

<pre><code>&lt;tr&gt;
 &lt;td&gt;Name of Organisation:&lt;/td&gt;
 &lt;td class="edtext" id="organisation"&gt;&lt;?=$aRes[0]['organisation']?&gt;&lt;/td&gt;
&lt;/tr&gt;
</code></pre>

<p>In the head of the page I have this:</p>

<pre><code>$(function() {
    $(".edtext").editable("./editHandler/WRITE.update.php?uaID=&lt;?=$uaID?&gt;", {
        event       : 'dblclick',
        dataType    : "json",
        placeholder : '',
        indicator   : 'Saving...',
        cssclass    : 'editable',
        submit      : 'Save',
        cancel      : 'Cancel',
    });
});
</code></pre>

<p>I can successfully send stuff into the database by double clicking and then editing the td field that I have given the id="organisation" to, just fine.</p>

<p>In the backend bit of php that deals with this, directly after the DB function that works fine, I have:</p>

<pre><code>header('Content-type: application/json');
</code></pre>

<p>(snip database update code - it works fine)</p>

<pre><code>$report = array();
$report['organisation'] = $userInput;
$report['result'] = "&amp;#10004;";
echo json_encode($report);
</code></pre>

<p>The same php has it's header set to:</p>

<p>So once the text that has been typed and saved into the editable table cell is entered into the database, the above sends back to the frontend ('Hello World' being the example text entered):</p>

<pre><code>{"organisation":"Hello World","result":"&amp;#10004;"}
</code></pre>

<p>Then what displays in the td cell that the edit took place in is this:</p>

<pre><code>{"organisation":"Hello World","result":"✔"}
</code></pre>

<p>Which is not what is wanted. The tick is what <code>&amp;#10004;</code> is supposed to be, but what I mean is I want the "Hello World" part to show (without the quotes of course) and the result to be displayed in a span or div with the id="result", elsewhere on the page.</p>

<p>I've read that I need to use the jEditable <code>callback</code> option however I cannot find any example of how to do this. I am not very confident with JS and would appreciate someone shoving me in the correct direction please. Functional examples welcome.</p>

<p>By the way I need to be able to use this bit of JS for multiple text fields and not have a separate JS entry for each data cell that requires editing access.</p>