Glaison26 / smedweb

0 stars 0 forks source link

incluir texto em textarea usando java script #1

Open Glaison26 opened 4 months ago

Glaison26 commented 4 months ago

https://pt.stackoverflow.com/questions/128493/adicionar-texto-a-uma-textarea-sem-apagar-o-existente

Glaison26 commented 3 months ago

document.getElementById('up_nomeField').value = "<?php echo $_SESSION['nomepac'] ?>"; document.getElementById('up_convenioField').value = "<?php echo $_SESSION['conveniopac'] ?>"; document.getElementById('up_telefoneField').value = "<?php echo $_SESSION['telefonepac'] ?>"; document.getElementById('up_emailField').value = "<?php echo $_SESSION['emailpac'] ?>"; document.getElementById('up_matriculaField').value = "<?php echo $_SESSION['matriculapac'] ?>";