Imaulle Posted May 11, 2011 Share Posted May 11, 2011 Hello, I've been reading up on the .click() function and I can not figure out how to have it trigger a php script. I need the click to send the li id via POST or something else so the script knows which li it needs to remove from the database. Here is my code so far $(function() { $('#colum').sortable({ update: function(event, ui) { var data = $(this).sortable("serialize"); $.post("sort_slideshow1.php", data); } }); $('#colum a').click(function() { $(this).parent('li').fadeOut("slow", function() { $(this).remove(); }); }); $("#colum").disableSelection(); }); Link to comment https://forums.phpfreaks.com/topic/236151-click-help/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.