Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

103
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda