2
I have for example 4 input
, each input
has a specific value ex:
*input com os valores
<input type="radio" value="1">
<input type="radio" value="2">
<input type="radio" value="3">
<input type="radio" value="4">
*input onde os valores serão adicionados
<input name="input vazio" type="text" value="">
And I still have another input
, and that input
initially will be with the empty value, and as selected input
, the values relating to input
selected will be added to that other input
empty, ex:
<input type="radio" value="1"> *esse input foi selecionado, logo o input vazio ficará assim
<input name="input vazio" type="text" value="1">
Suppose I select more than one button, I want you to add the values of both selected buttons, e.g.:
<input type="radio" value="1"> *esse input foi selecionado
<input type="radio" value="2"> *esse input foi também foi selecionado
<input type="radio" value="3"> *esse terceiro também foi selecionado
*logo o input que inicialmente estava vazio ficará assim :
<input name="input vazio" type="text" value="1 2 3">
I have the impression that it is similar/equal to How to change the selected option in my combobox from a li'?
– brasofilo
Yes, and similar, except that in this example you gave the values are not added, because as I said, I would like to add the values of the selected inputs, and in this example you pass it just changes by each other.
– ivan veloso
Actually, I made a mistake, it was this other answer abfurlan as well, but in the end the case is different...
– brasofilo