I have used JQuery with Ajax successfully before, but only for form elements (using GET and POST). I am trying to figure out how to do use Jquery and AJAX for non-form elements. I have a list like this:
- item1
- item2
Can someone pleasehelp me?
Edit: Using PHP
Here is the code I am working with but don't know how to use properly:
$(document).ready(function(){
$("#rating_toggle").click(function() {
$.ajax({
type: "POST",
url: "rating/test",
data: "????????",
success: function(data){
alert(data);
}
});
return false;
});
});