My code:
$(".status").click(function () {
var id= this.id;
alert(id);
$.ajax({
type: "GET",
url: '/dealer/change_status',
data: "id="+id,
success: function (response) {
}});
});
On click, id alert show up, but ajax request doesn't work neither shows any error alert id and page refresh.