Jquery each function doesnt work
This is my array.
- var json_array = [];
I inserted values on this array like below
- $(this).find('td').each(function () {
i++;
var textval = $(this).text();
json_array[keys[i]] = textval;
});
Again , i want to get them trying
- jQuery.each( json_array , function (i) {
console.log( json_array[keys[i]]) ;
});
But unfortunately i am not getting any value. Whats wrong with my code?
*That is my first question here, please correct me if i do any wrong in posting quesion