javascript - Get attributes value of dropped element in Meteor -
i have 2 meteor templates, each 1 contains data collection.
i'm using ui-dropped-event package, allows me use "dropped" event, essential. however, want value of attributes dropped element instead 1 dragged element to. i'm trying achieve this:
this dragged object:
<li class="dragme">hey there</li>
...which being dropped element:
<li class="droptome">test</li>
and js code goes this:
'dropped .droptome' : function(evt, tmp) { console.log($(evt.target).attr("class")); }
this prints "droptome" class instead of "dragme" class. need reach dragged element attributes.
Comments
Post a Comment