How do I check if an item I want to add into the select input, has already been added? Here is my code:
$("#FilterBatch").multiselect
({
noneSelectedText: "Select Batch",
selectedList: 1,
multiple: false,
click: function (event, ui) {
//do something
}
});
$.each(objJobInfo, function (index, value) {
if (value does not already exist in the select input) { <=== how do I check this?????
$('#FilterStatus').append($('<option>', {
value: value.Status,
text: objJobInfo[index]["Status"]
}));
}
});
Thank you