Select DIV with highest z-index

后端 未结 4 1548
遇见更好的自我
遇见更好的自我 2021-01-18 09:50

Example code so I can start explaining this problem:

5
2
4条回答
  •  花落未央
    2021-01-18 10:31

    I'm sure you could use the stop event to gain access to the recently dragged item, i.e.:

    $('.selector').draggable({
       stop: function(event, ui) {
          $(event.target).addClass('justDragged');
       }
    });
    

    If you wish to see all functions/variables bound to event, you could use the following:

    var str = '';
    for (i in event) {
        str += i + ', ';
    }
    alert(str);
    

    This should give you a good indication of what's available to you in any number of jQuery callback params.

提交回复
热议问题