Answers for "locak storage for table\ js"

0

locak storage for table\ js

var arr=[];    
    $("#dataTable").find('tbody tr').each(function(index,item){

        var fName=$(item).find('td').eq(0).text();
        var lName=$(item).find('td').eq(1).text();
        var memberId=$(item).find('td').eq(2).text();
        arr.push(new MemberInfo(fName,lName,memberId))
    });


  localStorage.setItem("memberData",arr);
Posted by: Guest on June-21-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language