You can add / set the class as your own flag. In this case, we will add a class called applied
//scroll through each upload item $('.upload').each(function(){ //Make sure class is not found if (!$(this).hasClass('applied')) //Apply Class and Upload Plugin $(this).addClass('applied').fileUploadUI({...}); });
Update as below yoavmatchulsky , you can also do
$('.upload:not(.applied)').addClass('applied').fileUploadUI({...});
Dutchie432
source share