try
$(document).ready(function(){
$(document).on('click','.idname', function(){
alert('est123');
$.ajax({
type: 'POST',
url: 'index.php',
data: {name:"test"},
cache: false,
success: function(data){
$('#results').html(data);
}
})
return false;
});
});
That is remove the "()" around the data