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

142
Views
my textarea text is clearing after button submits it

my code below deletes the text from my textarea that is inserted by a user after clicking the submit button but what i want is i want the text to be in my textarea after submit.

  <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

Simply try to add onSubmit="return false;" at the form tag

<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!