I want to remove an input id when another input id having value in defined values
my codes
setInterval(function() {
var MaterialGod = [
"FPPUTHP1100000",
"FPPUTHP1100000",
"FPPUTHP1110000",
"FPPUTHP1500000",
"FPPUTHP1680000",
"FPPUTHP1690000",
"FPPUTHP1590000"
];
$.each(MaterialGod, function(index) {
if ($("label:contains('Meterial Code')").parent().next().find('input').val() == index) {
$('#__item5-__box2-0').remove();
}
})
}, 100);
Pls give your advise what i m doing wrong
indexis the array index, not the value of the array element.