Merhaba, herkese iyi günler.
http://jsfiddle.net/5nr7cu5m/16/
nerde hata yaptım bulamadım. bu konuda yardım edebilir misiniz?
aşağıdaki gibi de denedim. ekrana alert versin diye ama olmadı.
$(document).ready(function(){
$('#anakat a').on('click',function(){
var link = $(this).attr("href");
var regex = /catId\=(\d+)/si;
match = regex.exec(link);
alert(match[1]);
/*
$('#root').html('<img src="images/loader.gif" />');
$.get('ajax.php',{islem:'kategori',catId:match[1]},function(result){
if(result)
{
$('#root').html(result);
}
else
{
alert("Bir hata oluştu, işlem yapılamamış olabilir");
}
});
return false;
/**/
});
});