1
Good afternoon...
I have the following radio Buttons:
<input type="radio" name="radio1" value="entrada"> Entrada
<input type="radio" name="radio1" value="saida"> Saida
I also have the following forms:
<div class="form-group">
<label style="color:white" for="valor">Valor Entrada</label>
<div class="input-group">
<input type="number" class="form-control" step="any" name="valor" required ng-model="divida.valorentrada" required>
</div>
</div>
<div class="form-group">
<label style="color:white" for="valor">Valor Despesa</label>
<div class="input-group">
<input type="number" class="form-control" step="any" name="valor" required ng-model="divida.valorsaida" required>
</div>
</div>
I need that when selecting the radiobutton "Input", the form "Expense Value" becomes disabled, and vice versa.
Someone can give me a light?
It didn’t work out here. I added an id to my form, tried using getElementById but did not disable the form, tried to pass as getElementById parameter the ng-model of my form, but still did not disable it.
– veroneseComS