Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

107
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda