i'm trying force an event from javascript.
I have a "select" element in the html and i'm forcing the value of this from javascript but this does not trigger the "change" event. How can I force the event?
HTML:
<th><select id="filtro_select_periodo"></select></th>
Javascript:
window.onload = function() { 
    let fecha = new Date();
    cargarSelectPeriodo();
    filtro_select_periodo.value = fecha.getMonth();
};
filtro_select_periodo.addEventListener("change", (e) => {
    let fecha = new Date();
    fecha = new Date(fecha.getFullYear(), e.value, fecha.getDate())
    let periodo = getFechaDesdeHasta(fecha);
    filtro_periodo_desde.value = periodo.desde;
    filtro_periodo_hasta.value = periodo.hasta;
    actulizarListado();
});
 
     
    