Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

148
Views
el texto de mi área de texto se borra después de que el botón lo envía

mi código a continuación elimina el texto de mi área de texto que inserta un usuario después de hacer clic en el botón Enviar, pero lo que quiero es que el texto esté en mi área de texto después de enviarlo.

 <form action="/search" name="myform" id="formid" method="post" > <div class="input-group" > <!-- <textarea name="input" id="textArea" /> <button type="submit" onclick="return fill()" >Search</button> </button> </div> </form> <script type="text/javascript"> function fill() { var x = document.getElementById('textArea').value; document.getElementById('demo').innerHTML=x; } </script>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Simplemente intente agregar onSubmit="return false;" en la etiqueta del formulario

 <form action="/search" onSubmit="return false;" name="myform" id="formid" method="post" >
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!