jquery-ndd icon indicating copy to clipboard operation
jquery-ndd copied to clipboard

using $(this) doesn't work

Open gre opened this issue 14 years ago • 1 comments

Hi Guillaume.

using $(this) instead of $('css selector') doesn't work (no effects, callback functions are never called).

This is the bug case : jQuery(this).droppable( 'Files', function(e) { $(this).css('background', 'yellow') }, function() { $(this).css('background', 'none') }, function(e) { $('ul', this).append('

  • ' + e.dataTransfer.files[0].fileName + '
  • ') })

    (same example than jQuery('#files') but changed to jQuery(this) )

    Regards, Gaetan

    gre avatar May 18 '10 11:05 gre

    In fact, only css selector works.

    gre avatar May 18 '10 12:05 gre