I have a select with the following data:
<select name="entidad" id="entidad">
<option disabled selected>Seleccionar Entidad</option>
<option>TODAS</option>
<option>BANCOLOMBIA</option>
<option> BANCO BBVA</option>
<option>COOTRAPELDAR</option>
<option> DIEBOLD</option>
</select>
and I also have two input to make a query by date range.
what I want is to create a function in js that when choosing an option of the select validates me if the input with the id="start_date"
of the dates are empty, if they are empty, I normally make the query. But I still do not know how to do it. Would someone explain to me how I could do it?