So I have an object array called Banker and i have an array called remove_banker_id,
so in my code remove_banker_id = [11, 99]. My banker object banker.id has 11 and 99 and i dont want to include them in my third array so how do i do tht?
My current code has this in my javascript file
$.each(data, function( index, banker ) {
$.each(lender_banker_id_array, function(index, banker_id) {
if(parseInt(banker_id) !== banker.id) {
banker_object
.append($('<option>', {value: banker.id, html: banker.name }))
.removeAttr('disabled');
}
})
});
So basically if any lender_banker_id_array is in banker object, do not append it. But with this code it is not working properly. How do i solve this