[jQuery] Re: Callback function not working

2009-01-25 Thread Stephan Veigl
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!); }); by(e) Stephan

[jQuery] Re: Callback function not working

2009-01-24 Thread Althalos
and also $(#date_+$(this).attr(id)).html(Updating..); works fine! On 24 Jan, 16:39, Althalos ca...@ekdahlproduction.com wrote: Hello, I have a callback function belonging to a $.post that won't work. Anyone know why? This is my function: function(date) {