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

98
Views
Any ideas how I can add the picklist to the following JS

The following creates a dropdown picklist and a comment box, the picklist is empty and I cant figure out where to put the options inside the script

$(document).ready(function(){
    var withdrawalCharLimit = 600;
    buildWithdrawalDropdown();
    $("#withdrawalCharRemainingGWU").text(withdrawalCharLimit-$("#withdrawalCommentsGWU").val().length);
   
    $("#withdrawalReasonGWU").change(function() {
        if($("#withdrawalCommentsGWU").val()==""){
            $("#taComments").val($("#withdrawalReasonGWU").val());
        } else {
            $("#taComments").val($("#withdrawalReasonGWU").val()+". Detail: "+$("#withdrawalCommentsGWU").val());
        }
    });
    $("#withdrawalCommentsGWU").keyup(function(){
        if($("#withdrawalCommentsGWU").val()==""){
            $("#taComments").val($("#withdrawalReasonGWU").val());
        } else {
            $("#taComments").val($("#withdrawalReasonGWU").val()+". Detail: "+$("#withdrawalCommentsGWU").val());
        }
        $("#withdrawalCharRemainingGWU").text(withdrawalCharLimit-$("#withdrawalCommentsGWU").val().length);
    });
   
});
 
function buildWithdrawalDropdown(){
    var withdrawalSelect = $("<select class='form-control' id='withdrawalReasonGWU'></select>").insertBefore("#taComments");
    var withdrawalComments = $("<label for='withdrawalCommentsGWU'>Additional Comments (optional):</label><textarea maxlength='600' class='form-control' id='withdrawalCommentsGWU'>")}
  

The list looked like this how the options should load

about 4 years ago · Santiago Gelvez
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!