I have many jquery functions in my script, but the specific one does not work, this is my function
$('#delete').click(function() { var id = $(this).val(); $.ajax({ type: 'post', url: 'update.php', data: 'action=delete&id=' + id , success: function(response) { $('#response').fadeOut('500').empty().fadeIn('500').append(response); $(this).parent('tr').slideUp('500').empty(); } }); });
a similar function like this one works
<!-- WORKING FUNCTION --> $('#UpdateAll').click(function() { $.ajax({ type: 'post', url: 'update.php', data: 'action=updateAll', success: function(response) { $('#response').fadeOut('500').empty().fadeIn('500').append(response); $('#table').slideUp('1000').load('data.php #table', function() { $(this).hide().appendTo('#divContainer').slideDown('1000'); }); } }); });
I checked with firebug, the console does not show any errors, I checked the html source, the values load correctly, I checked my php file 5 times, this is correct, cannot solve the problem. Please, help.
javascript jquery
Shishant
source share