$(document).ready(function(){
$('#list li').click(function(){
var ID= $(this).attr('id');
$.post("index.php", ID,
function(){
$("#category").html(ID);
}
);
});
});
This code shows my selected list ID in html <div id="category">
.
Question
Is there any way to post that data directly to PHP code and echo it? I need data in php, because I want to use it in my query.