How make an Interactive Table?
Hi. I would like to have an interactive table - that means that I would like to have table with option of editing it with <input>. Something like that:
<table border="1">
<tr>
<td>1234</td><td>2345</td>
</tr>
</table>
And when I will click on the text inside the table I would like to have option of editing it. How do that?
I tried somthing like that but it doesn't work properly:
$('td').html('<input value=' + $('td').text() + '>');
$('input','td').blur(function()
{
$('td').text($('td').val());
});
Could you help me?