Good evening, guys, I have a question about which best option is pure php or with javascript remembering that I have to pick up the last data to send to the bank in another. Thisiscurrentlyusingjavascript.butIwanttogothroughphphowcouldIdo?willbelikethislater
//<![CDATA[
window.onload=function(){
var btn = document.getElementById('btn');
btn.addEventListener('click', passar);
function passar() {
var valorA = document.getElementById("valorA");
var nome = document.getElementById("nome");
nome.value += (valorA.value + '\n');
};
}//]]>
<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" id="btn">passar valores</button>Nome:
<textarea id="nome" size="10"></textarea>