(This is my first post here)
My array declaration is like below
- var json_array = [];
I insert values in this array
- var keys = ['rowid', 'Leave', 'Family', 'Place', 'Country', 'fromdate', 'todate', 'Email', 'Phone', 'Remarks', 'leave_status'];
- $(this).find('td').each(function () {
i++;
var textval = $(this).text();
json_array[keys[i]] = textval;
});
When i want to retrieve these values like below, i can't get any value? Whats wrong with my code?
- jQuery.each( json_array , function (i) {
console.log( json_array[keys[i]]) ;
//console.log('rana');
});
Thank you.