[jQuery] Re: Newbie -- How to retrieve img src value in function?

2007-04-28 Thread Sean Catchpole
Try drag.src ~Sean

[jQuery] Re: Newbie -- How to retrieve img src value in function?

2007-04-28 Thread dennis
On Apr 28, 4:00 pm, Sean Catchpole [EMAIL PROTECTED] wrote: Try drag.src ~Sean Hi Sean, drag.src returns undefined. Here is a partial list of various things I've tried. var thePhoto = drag.innerHTML.(img).attr(src); // no var thePhoto = drag.innerHTML.attr(src); // no var thePhoto =

[jQuery] Re: Newbie -- How to retrieve img src value in function?

2007-04-28 Thread Dave Cardwell
dennis wrote: If this makes a difference, the image is defined within this set of divs: div id=theImages div id=drag class=dropaccept img src=static/galleries/JQm49CWi09/_t/lilly01_fuy.jpg/a /div /div I haven't used draggables, but it looks like drag in this case is a jQuery object. In

[jQuery] Re: Newbie -- How to retrieve img src value in function?

2007-04-28 Thread Brandon Aaron
Try this: $('img', drag).attr('src'); -- Brandon Aaron On 4/28/07, dennis [EMAIL PROTECTED] wrote: On Apr 28, 4:27 pm, Dave Cardwell [EMAIL PROTECTED] wrote: I haven't used draggables, but it looks like drag in this case is a jQuery object. In that case, you want drag.attr(src).

[jQuery] Re: Newbie -- How to retrieve img src value in function?

2007-04-28 Thread dennis
On Apr 28, 5:25 pm, Brandon Aaron [EMAIL PROTECTED] wrote: Try this: $('img', drag).attr('src'); Brandon, that idiom works. I'll stop banging my head now. Thanks BIG! /dennis