DataTables Jeditable LocalStorage
<p>I work in TodoList with a Localstorage,DataTables and Jeditable. Edit work for only one row and not for the others (dynamically added) but nothing is save properly in the LocalStorage.</p>

<pre><code> &lt;script src="script/jquery.js"&gt;&lt;/script&gt;
    &lt;script src="script/jquery.jeditable.js"&gt;&lt;/script&gt;
    &lt;script src="script/jquery.dataTables.js"&gt;&lt;/script&gt;
    &lt;script src="script/jquery-ui.js"&gt;&lt;/script&gt;
    &lt;script&gt;
    var giCount = 1;
    if (!localStorage)
    {
        alert('Votre Navigateur ne supporte pas Local Storage. Veuillez utiliser Google Chrome.');
    }
</code></pre>

<p>This the function for LocalStorage</p>

<pre><code>function SaveLS(datas)  
    {
        localStorage.setItem("Task", JSON.stringify(datas));
    }
    function LectureLS(Task)
    {
            var data = localStorage.getItem(Task);
            var res = JSON.parse(data);
            return (res);
    }
</code></pre>

<p>Add Row is Ok</p>

<pre><code>function fnClickAddRow() 
    {
        $('#list').dataTable().fnAddData
        ([
            giCount+".1",
            giCount+".2",
            giCount+".3",
            giCount+".4" 
        ]); 
        giCount++;
    }
</code></pre>

<p>Jeditable and datables init</p>

<pre><code>$(document).ready(function()
    {
    //init
        $('#list').dataTable(
        {
            "bJQueryUI": true,
            "bStateSave": true,
            "aaData" : LectureLS("Task")            
        });

    var oTable = $('#list').dataTable(); 
        oTable.$('td').editable(function(value, settings) 
        { 
            return(value);
        },
        {
            "callback": function( sValue, y ) 
            {
                var aPos = oTable.fnGetPosition( this );
                oTable.fnUpdate( sValue, aPos[0], aPos[1] );
                var data = oTable.fnGetData( this );
                console.log(oTable);
            },
            "height": "14px",
            "width": "100%"
        });

        $('#addData').click(function(){
        fnClickAddRow();
        return false;
    });
    }); 
    &lt;/script&gt;
</code></pre>

<p>Thanks For help</p>
