Is there a way to clear all items in a dropdown using jquery ? I will have to clear all items before i call the following method to avoid duplication
$('#drpeventproducts').append($('<option>', {
value: data.id,
text: itemname
}));