Answers for "jquery post get error code"

2

jquery ajax $.post with data

$.post('http://example.com/form.php', {category:'client', type:'premium'}, function(response){ 
      alert("success");
      $("#mypar").html(response.amount);
});
Posted by: Guest on March-12-2020
0

jquery post failure

$.post("test.php", function(data) {
   alert("Data Loaded: " + data);
})
.fail(function() { 
   alert("error"); 
})
Posted by: Guest on December-31-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language