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

85
Views
AJAX Sending empty strings but in console I see them

I have some problem, seems like I can't solve it...

I have code

$(document).on("click","#location-routes .fa-floppy-disk",function(){
    let route = [];
    let job = $(this).closest('.row').attr('job');
    $(this).closest('.row').find('input').each(function () {
        route[$(this).attr('name')] = $(this).val();
    });
    route['location'] = alias;
    $.ajax( {
          type: "POST",
          url: "white.php",
          data: {job: job, info:  JSON.stringify(route)},
          dataType: "json",
          success: function( data ) {
                console.log(data);
              }
        });
        
    console.log(route);
});

In console, I see what should be, but ajax is sending empty query.

I also use jquery ui autocomplete, and google map api at this page. Please, help me to fix it.

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!