Are you first timer at lazacode.org? Why not join us and start exchange your knowledge with everyone. Register today!

jQuery - getJSON if data == success redirect to success page

0 votes
2 views
added Feb 9 in jQuery by LC Marshal Second Warrant Officer (3,400 points)

$.getJSON(submitUrl,
    function(data) {
      if (data == 'success'){
        console.log("redirecting..");
        window.location.replace("report-success.html");
      }
    }
);

   

Please log in or register to response this solution.

...