compare jquery.each and for...in
Hi all,
I'm a newbie and I have a question and need your help, please.
When I traverse the follow array, jquery.each and for in, which way has higher efficiency?
arr = ['#div1', '#div2', '#div3']; // there may be more than 10 div
I'll process each div:
text = $(div).text();
$('<input type='submit'..../>').appendTo(div);