2
I have 2 field as shown below :
<div class="col-md-4">
<label for="descricao">Valor título </label>
<div class="input-group">
<span class="input-group-addon">R$</span>
<input type="text" id="entr_valorMoeda" class="form-control valor" value="<?php echo $conta->ENTR_ValorMoeda;?>" readonly >
<input type="hidden" class="valor" name="entr_valorMoeda" value="<?php echo $conta->ENTR_ValorMoeda;?>">
</div>
</div>
<div class="col-md-4">
<label for="descricao">Valor baixa </label>
<div class="input-group">
<span class="input-group-addon">R$</span>
<input type="text" class="form-control valor" id="valorBaixa" name="valorBaixa" value="<?php echo $valorBaixa;?>">
<input type="hidden" name="totalBaixas" value="<?php echo $totalBaixas; ?>">
</div>
</div>
Where the first field reports me a database value and the 2 replicate that same value but the first field is blocking cannot change and the second I can change, Then I wanted to know how I do for when I change this second the same does not pass the value of varialvel.
Let’s understand you have two fields You have 2 fields. the value of both comes from the database. One you want locked. the other you want to edit. Without changing the value of the previous one. That’s it ?
– Risk
You hit in parts, the value of both are equal and comes from the bank but one already the first and locked and the second can edit only that the second value not to be typed can not pass the value of the first.
– Vision Development