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

205
Views
El selector de selección de Bootstrap no funciona mientras se usa el apéndice ajax

Estoy usando 2 selectpicker en mi página web. Uno funciona bien, que obtiene datos directamente de php, pero otro no funciona y agrega datos de ajax.

 $('#groups').change(function () { var isVAl = validateGroup(); if(isVAl){ var group = $('#groups').val(); $.ajax({ url: 'financeentryfiles/getLedgerView.php', type: 'POST', data: {"group":group}, dataType: "JSON", success:function(response){ if(response.ledgerid.length == 0){ $("#ledger").empty(); $("#ledger").prepend("<option value=''>"+'Select Ledger'+"</option>"); }else{ $("#ledger").empty(); $("#ledger").prepend("<option value=''>"+'Select Ledger'+"</option>"); for(r=0;r<=response['ledgerid'].length-1;r++){ $("#ledger").append("<option value='"+response['ledgerid'][r]+"'>"+response['ledgername'][r]+"</option>"); } $("#ledger").selectpicker('refresh'); } } }); } 

ingrese la descripción de la imagen aquí

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!