not shit at jquery?
not shit at jquery?
- Started
- Last post
- 3 Responses
- zr
Turns out I'm a bit shit at jquery so would appreciate help from someone who isn't.
I'm trying to modify the example code for ui.droppable. When an item is dropped its width and height are adjusted, I want this to only happen to an item whose parent is id="gallery".
Adding in an if loop has made it all stop working and firebug throws this error:
syntax error
[Break on this error] $item.append(recycle_icon).appen... ($(item.parent).is('#gallery')) {\nThe relevant bit of code I've bollocksed up can be found at line 48 http://pastebin.com/yjGnz07H
- Stugoo0
re paste your error with spaces plz.
- welded0
Just a guess, but on that line try wrapping the if conditional in a function.