Edit in place with javascript and update the array value?
<p>I am not using any javascript plugin,</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;sample dynamic select list&lt;/title&gt;
&lt;script language='javascript'&gt;
function changeContent(tablecell)
{
    tablecell.innerHTML = "&lt;INPUT type=text name=newname onBlur=\"javascript:submitNewName(this);\" value=\""+tablecell.innerHTML+"\"&gt;";
    tablecell.firstChild.focus();
}
function submitNewName(textfield)
{

    textfield.parentNode.innerHTML= textfield.value;
}
&lt;/script&gt;
&lt;/head&gt;
&lt;?php
$exrate = array("USD"=&gt;array('sale'=&gt;123,"buy"=&gt;456))
?&gt;
&lt;body&gt;
Double click on any cell. Then enter your own text and then tab out or click on other place.
&lt;table border=1 bgcolor=gray&gt;
&lt;tr&gt;
&lt;th&gt;Currency&lt;/th&gt;
&lt;th&gt;Buy&lt;/th&gt;
&lt;th&gt;Sale&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td onDblClick="javascript:changeContent(this);"&gt;&lt;?=$exrate["USD"]["sale"]?&gt;&lt;/td&gt;
&lt;td onDblClick="javascript:changeContent(this);"&gt;&lt;?=$exrate["USD"]["buy"]?&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt; 
</code></pre>

<p>When Double click on any cell Then enter your own text and then tab out or click on other place.so How can I update these data example store in an array ,can store values in every time edited?</p>
