Neřešili jste? Našel jsem asi použitelný kód.
$(document).ready(function () {
$('.pool').click(function() { // When the radio button is clicked...
$.ajax({ // ... submit this AJAX call.
type: "POST", // Method (POST or GET)
url: "remote/hcm/pvote.php", // Path to your rater.php file
data: "star1="+$(this).val(), // The value of this radio button
success: function(data) { // Stuff to run on success
// Anything you want to happen on success.
// 'data' is the returned HTML from your PHP.
// If you don't want anything to happen, leave this blank.
},
error: function(data) { // Stuff to run on error
// Any error handling you might want
}
})
})
});
$(document).ready(function () {
$('.pool').click(function() { // When the radio button is clicked...
$.ajax({ // ... submit this AJAX call.
type: "POST", // Method (POST or GET)
url: "remote/hcm/pvote.php", // Path to your rater.php file
data: "star1="+$(this).val(), // The value of this radio button
success: function(data) { // Stuff to run on success
// Anything you want to happen on success.
// 'data' is the returned HTML from your PHP.
// If you don't want anything to happen, leave this blank.
},
error: function(data) { // Stuff to run on error
// Any error handling you might want
}
})
})
});