claudiu-c
2/8/2017 - 4:25 PM

magento1 check for duplicate skus

sku = document.getElementsByClassName("da")
for(i = 0; i < sku.length; i++){ 
  if(ids.indexOf(sku[i]) != -1){
    console.log("sku duplicate "+sku[i])
   }else{
     ids.push(sku[i].innerHTML)
   }
}