Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
150
rated 0 times [  156] [ 6]  / answers: 1 / hits: 19295  / 14 Years ago, tue, april 13, 2010, 12:00:00

I'm using JqueryUI for drag and drop on one of my pages and for some reason I can't seem to get an attribute of the ui.draggable object being passed into my droppable drop event.



ui.draggable.attr(src) and $(ui.draggable).attr(src) both return undefined, however if I type ui.draggable.html() I will get the html back. Any ideas?


More From » jquery

 Answers
1

I figured it out. The solution is to call ui.draggable.find(img).attr(src), I just assumed that the ui.draggable object was an image.


[#97081] Sunday, April 11, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
harveys

Total Points: 113
Total Questions: 88
Total Answers: 79

Location: Oman
Member since Fri, Dec 23, 2022
1 Year ago
;