while using jQuery each:
$.each([ 52, 97 ], function( index, value ) {
alert( index + ": " + value );
});
Is there anything like continue
to stop the loop?
Pseudocode:
$.each([ 52, 97, 10, 20, 30 ], function( index, value ) {
alert( index + ": " + value );
if (value==20) {
continue; // STOP LOOPING AND CONTINUE AT POINT (2)
}
});
<---- POINT (2) ---->