[QUOTE]Азат Гумеров пишет:
[CODE]<script type="text/javascript">
$('.red').click(function()
{
var price_id = $(this).parent().find('.price_id').text();
$.ajax({url:'/index.php',
dataType: 'html',
success: function(data)
{ $('.red').text(data); }
});
return false;
});
</script>[/CODE][/QUOTE]
может я что то не понимаю, но где вы тут передаёте price_id?
может правильнее так:
[CODE]<script type="text/javascript">
$('.red').click(function()
{
var price_id = $(this).parent().find('.price_id').text();
$.ajax({url:'/index.php?price_id='+price_id,
dataType: 'html',
success: function(data)
{ $('.red').text(data); }
});
return false;
});
</script>[/CODE]