Sir I am facing issue with create order while making post call at: https://5d76bf96515d1a0014085cf9.mockapi.io/order
getting Bad Request error, could you please check weather API link format is okay.
this is related to JS FINAL ASSINGMENT, so please check once.
1 Like
@deepakgond1804 ,
If you are facing issue with URL, then you can try with this mock API “https://jsonplaceholder.typicode.com/todos”
$("button").click(function(){
$.post("https://jsonplaceholder.typicode.com/todos",
{
name: "Donald Duck"
},
function(data,status){
alert("Order Placed Successfully");
});
});
2 Likes