My question is related to jQuery Ajax
1=>
$.ajax({
url:http://localhost/81/api/products",
type:"delete",
data:{"id:$("#prodid").val()},
});
2=>
$.ajax({
url:http://localhost/81/api/products" + $("#prodid").val(),
type:"delete",
});
What is different between both statement related to data passing. Please explain it...
Thanks and Regards,
Krishna Kumar