Jump to content

.click() help


Imaulle

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.