I'm developing a simple crud with ajax and jquery and I came across the following question ...
$('#btnDelete').unbid().click(function(){
$.ajax({
type: 'ajax',
method: 'post',
async: false,
url: url,
})
})
Note that my url only has url: url, in another location there is a similar script but with a different url. What would be the difference?
$.ajax({
url: '<?php echo base_url() ?>usuario/remover',
type: 'POST',
data: dados,