haven't tested it, bu I guess the "this" variable is the problem in
your callback
$("#date_"+$(this).attr("id")).html("Done!");
try:
var el = $(this);
$.post("includes/updateleverans.php",{id:el.attr("id"), date:date},
function (data) {
$("#date_"+el.attr("id")).html("Done!");
}
and also $("#date_"+$(this).attr("id")).html("Updating.."); works
fine!
On 24 Jan, 16:39, Althalos wrote:
> Hello, I have a callback function belonging to a $.post that won't
> work. Anyone know why? This is my function:
>
> function(date) {
> $("#date_"+$(this).attr("id")).html("Updating.."
2 matches
Mail list logo