1
I’m trying to get past several data for a input, I had almost no idea it would be a textarea for the amount but it would be another select ? This way:
I’m trying to keep it that way:
If anyone can give a hint I will be grateful. Follow the code:
<script type="text/javascript">
function passar(){
var valorA = document.getElementById("valorA");
var nome = document.getElementById("nome");
nome.value = valorA.value;
};
</script>
<select name="valorA" id="valorA" size="3" multiple>
<option value="Gezer">Gezer</option>
<option value="João" selected>João</option>
<option value="Marcos">Marcos</option>
</select>
<button type="button" onclick="passar();"> passar valores </button>
Nome:<input type="text" id="nome" size="10"/>
hum saw that this adding all as I can one by one selected one at a time or could do in php?
– gezer
to pass one at a time you can do so jsfiddle i will update in post :) the above solution is with javascript, php already flees from my area of knowledge hehe
– Brunno
mano vc helped me a lot was doing in php but give up, it even worked but it looks better for me so less code thank you even. blessed be it. I will adapt to another cosia now kkk
– gezer