JQuery with draggable and sortable list

Discussion in 'jQuery' started by DanInManchester, Nov 2, 2009.

  1. #1
    I have a draggable region which I drag items to a list to add them like this example here
    http://jqueryui.com/demos/draggable/sortable.html

    however I want to have a remove icon that is added to the top right corner when the item is added which has a simple click event that fires remove() to remve the item from the list.

    How do I do this?
     
    DanInManchester, Nov 2, 2009 IP
  2. AsHinE

    AsHinE Well-Known Member

    Messages:
    240
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    138
    #2
    AsHinE, Nov 2, 2009 IP
  3. DanInManchester

    DanInManchester Active Member

    Messages:
    116
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    It does sort of but it isn't sortable and when I adapted it to be a sortable list the events got lost some how. I think Ive fixed it now by rebinding after dropping. Not sure this is very efficient.

    The issue I have now is getting the Id of the item that is dropped on to using the received event.
     
    DanInManchester, Nov 2, 2009 IP