I would like to know if there is any function to enable or disable a INPUT
depending on the value of a SELECT
This is my code:
<div>
<select name='id_categoria' id='id_categoria' onchange="carg(1);">
<option value="1" selected>Clientes</option>
<option value="2">Empresas</option>
<option value="3">Personas</option>
</select>
</div>
My intention is to select the options 2 or 3 to be able to enable the input and otherwise if the 1 is selected Disable it