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

190
Views
Pop up new text box after click on "Others" from dropdown and database captured that new data

I found a way how to pop up a new text box after click on "Others" from the dropdown. But the problem here is database capture "Other" instead of the new data that I key in. For example I key in "Policeman" but it captured "Other" in my database.

    <head>  
    <script type="text/javascript">
    function showfield(name){
    if(name=='Other')document.getElementById('div1').innerHTML='Other: <input type="text" 
    name="other" />';
    else document.getElementById('div1').innerHTML='';
   }

 </script> 
 </head>
    <form action="https://apps3.xendsys.com/emv3/index.php/lists/xl080bdvq5cc8/subscribe" method="post">
   <div class="box box-primary borderless">
  <div class="box-header">
  <h3 class="box-title">Website Subscribers</h3>
  </div>
   <select name="OCCUPATION" id="OCCUPATION" 
   onchange="showfield(this.options[this.selectedIndex].value)">
      <option selected="selected">Please select ...</option>
      <option value="Student">Student</option>
      <option value="Educator">Educator</option>
      <option value="Designer">Designer</option>
      <option value="Other">Other</option>
   </select>
   <div id="div1"></div>
  <div class="box-footer">
 <div class="pull-right"><input type="submit" class="btn btn-primary btn-flat" name="yt0" value="Subscribe"/></div>

  <div class="clearfix"> </div>
  </div>
  </div>
    </form>

What should I change ya?

about 4 years ago · Juan Pablo Isaza
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!