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

426
Views
¿Cómo obtener valores de respuesta ajax de diferentes respuestas de solicitud ajax? o de alguna otra manera?

Tengo un formulario que tiene una lista desplegable dependiente como marcas, categoría y producto y para una sola fila tengo las 3 listas de 3 respuestas de solicitud de ajax pero en una nueva fila usando addrow ¿cómo puedo llamar u obtener 3 valores de respuesta de ajax diferentes bajo uno?

por ejemplo, según la categoría de la marca, viene como

 $.ajax({ url: 'php_action/fetchDropdownProductData.php', // category depend on brand name type: 'post', data: {brandId : brandId}, dataType: 'json', success:function(response) { var html = '<option value="">Select Category</option>'; response.forEach(category => { html += "<option value='" + category.categories_id + "'>"+ category.categories_name +"</option>" $("#productCategories"+row).html(html); }) } // /success }); // /ajax function to fetch the product data

y para addrow ajax

 $.ajax({ url: 'php_action/fetchProductData.php', type: 'post', dataType: 'json', success:function(response) { $("#addRowBtn").button("reset"); var tr = '<tr id="row'+count+'" class="'+arrayNumber+'">'+ // start of productBands on addrows '<td>'+ '<div class="form-group">'+ // here is the wrong I am doing... '<select class="form-control" name="productBrand[]" id="productBrand'+count+'" onchange="getProductData1('+count+')" >'+ '<option value="">~~SELECT~~</option>'; $.each(response, function(index, value) { tr += '<option value="'+value[0]+'">'+value[1]+'</option>'; }); tr += '</select>'+ '</div>'+ '</td>'+
over 4 years ago · Santiago Trujillo
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!