Понятия не имею, почему я получаю эту ошибку (я читаю каждую тему с похожим названием, но ответы на эти вопросы не применяются):
$(document).ready(function() {
postAndFade($node, post_key) {
var id = $node.parents.('.id').find('.id-value').text();
var post_val = $node.text();
$node.fadeOut('slow');
$.ajax({
type: "POST",
url: "process.php",
data: "id="+id+"&"+post_key+"="+post_val,
success: function(data) {
$node.html(data);
$node.fadeIn('slow');
}
});
return false;
}
$('.featured-value').click(function() { return postAndFade($this, 'featured'); });
$('.visible-value').click(function() { return postAndFade($this, 'visible'); });
});