jQuery.each not working with length prop
by jboesch26
JavaScript
// Does not work in this case
var html = '';
$.each({ a: 1, b: 2, length: 12 }, function(key, val){
html += '[' + key + ', ' + val + ']<br/>';
});
$('body').html(html);
by jboesch26
// Does not work in this case
var html = '';
$.each({ a: 1, b: 2, length: 12 }, function(key, val){
html += '[' + key + ', ' + val + ']<br/>';
});
$('body').html(html);