Breakpoint stavis unutar public JsonResult Gradovi1() i prodje? onda bi trebalo da radi.
Da li javlja neku gresku kad debagujes javascript, probaj ovako da stavis funkciju
Code:
$(document).ready(function () {
$(".btnAjax").click(function () {
$.ajax({
url: "Sifarnici/Gradovi1",
dataType: "json",
type: "GET",
contentType: "application/json; charset=utf-8",
success: function (data) {
$(".imer").html("radi");
},
error: function (xhr) {
$(".imer").html("ne radi");
}
});
});
});