I have used return false to terminate each loop but it is not breaking the loop. My code is as below :
$.each(popuparray, function (i, item) {
$('.droparea >.ss-active-child').each(function () {
if (this.id == finaldivId) {
alert("this is " + this.id + " finaldivId " + finaldivId);
return false;
}
});
//some code here as well
});
Kindly suggest me the solution.