1
<div class="row">
<div class="form-group col-md-3">
<label for="servico">Serviço</label>
<select>
<option value="200">Escapamento / Montagem R$ 100</option> </select>
</div>
<div class="form-group col-md-4">
<label for="valorTotal">Total</label>
<input type="text" class="form-control" id="valorTotal" name="valorTotal" value="" readonly >
</div>
</div>
Good morning guys.
I have a select that shows the service name, part value and assembly. I wanted that when selecting the service, were added 200 + 100 and presented in another input.
That would be my select:
<div class="row">
<div class="form-group col-md-3">
<label for="servico">Serviço</label>
<select>
<option value="200">Escapamento / Montagem = 100</option> </select>
</div> </div>
<div class="form-group col-md-4">
<label for="valorTotal">Total</label>
<input type="text" class="form-control" id="valorTotal" name="valorTotal" value="" readonly >
</div>
</div>
It is possible to do this with Jquery?
will always come apart by
/
and thatselect
it’s kinda weird he’s<select></select>
?– novic
@Virgilionovic made the correction, was missing the tag select and added to run html. See if you can understand now.
– AmandaRJ
now you’ve changed the question? Is that really how it is to come? One is with equal to another one
R$
, please put correctly as is the true way?– novic
Hi @Virgilio I changed right when you answered me. Sorry. But this last modification is my problem. Thanks
– AmandaRJ
I put an example with = see if it’s right for you? has a pattern look like it would be!
– novic
Just the way I need it. Thank you very much.
– AmandaRJ