Trying to think in Javascript rather than jQuery, so I'm wondering if I'm doing this right.
I want to have a callback when my loop is finished. Is this the proper way?
for(var i = 0; i < divs.length; i++) {
/* do some stuff */
if ( i === (divs.length - 1)) { /* call back */ }
}
I should add that I don't mean something like a JSON request callback, just when the loop has finished.